forked from SeAIPalette/SeAIPalette
修改注释
This commit is contained in:
parent
28395a7985
commit
b3d65a8b9f
|
@ -160,5 +160,5 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
if t:
|
if t:
|
||||||
break
|
break
|
||||||
|
|
||||||
print(steps)
|
print(steps)
|
||||||
|
|
|
@ -17,7 +17,6 @@ def generate_agent_fields(fields, ship_num, splited_areas):
|
||||||
for _ in range(ship_num)], axis=0)
|
for _ in range(ship_num)], axis=0)
|
||||||
for ship_id in range(1, ship_num+1):
|
for ship_id in range(1, ship_num+1):
|
||||||
cur_fields = agents_fields[ship_id-1]
|
cur_fields = agents_fields[ship_id-1]
|
||||||
# print((splited_areas != ship_id) * (splited_areas != -1))
|
|
||||||
cur_fields[(splited_areas != ship_id) * (splited_areas != -1)] += 1
|
cur_fields[(splited_areas != ship_id) * (splited_areas != -1)] += 1
|
||||||
return agents_fields
|
return agents_fields
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue