File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "width" :9 ,
3
- "height" :11 ,
2
+ "width" :11 ,
3
+ "height" :9 ,
4
4
"player1_coordinate" :[0 ,0 ],
5
5
"player2_coordinate" :[0 ,8 ],
6
6
"player3_coordinate" :[0 ,2 ],
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ def __init__(self,
84
84
'wallet' : 0
85
85
}]
86
86
self .input_map = input_map
87
- self .x_size = input_map ['width ' ]
88
- self .y_size = input_map ['height ' ]
87
+ self .x_size = input_map ['height ' ]
88
+ self .y_size = input_map ['width ' ]
89
89
self .agents_cnt = agents_cnt
90
90
self .rounds = rounds
91
91
self .max_rounds = rounds
@@ -369,8 +369,8 @@ def generate_info(self):
369
369
370
370
def load_map (self ):
371
371
conf_dic = self .input_map
372
- self .x_size = conf_dic ["width " ]
373
- self .y_size = conf_dic ["height " ]
372
+ self .x_size = conf_dic ["height " ]
373
+ self .y_size = conf_dic ["width " ]
374
374
self .fog_map = conf_dic ["fog_map" ]
375
375
for i in range (self .agents_cnt ):
376
376
self .agents_list [i ].x = conf_dic [f"player{ i + 1 } _coordinate" ][0 ]
Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ def final_update_info(self):
155
155
igd ['winner' ] = self .players [self .winner [0 ] - 1 ]['name' ]
156
156
igd ['winnerId' ] = self .winner [0 ]
157
157
igd ['win_reason' ] = self .winner [1 ]
158
- igd ['map_width' ] = int ( self .info [ 0 ][ 'board' ]. shape [ 0 ])
159
- igd ['map_height' ] = int ( self .info [ 0 ][ 'board' ]. shape [ 1 ])
158
+ igd ['map_width' ] = self .map [ 'width' ]
159
+ igd ['map_height' ] = self .map [ 'height' ]
160
160
igd ['map_data' ] = {}
161
161
igd ['map_data' ]['obstacle' ] = self .map ['walls' ]
162
162
igd ['map_data' ]['fog' ] = self .map ['fog_map' ]
You can’t perform that action at this time.
0 commit comments