Unknown error (please help)

I have no idea what the issue is, but I’ve put the log below. Please help if you can, I’m very new to coding and python.

---------------- Starting Your Algo --------------------
Configuring your amazing algo strategy…
Performing turn 0 of your amazing algo strategy
Traceback (most recent call last):
File “/tmp/algo2598469712388563212/algo_strategy.py”, line 115, in
algo.start()
File “/tmp/algo2598469712388563212/gamelib/algocore.py”, line 61, in start
self.on_turn(game_state_string)
File “/tmp/algo2598469712388563212/algo_strategy.py”, line 56, in on_turn
self.starter_strategy(game_state)
File “/tmp/algo2598469712388563212/algo_strategy.py”, line 74, in starter_strategy
self.deploy_attackers(game_state)
File “/tmp/algo2598469712388563212/algo_strategy.py”, line 100, in deploy_attackers
if game_state.turn_number == 0 and game_state.can_spawn(PING, [[ 3, 10],[ 24, 10]]):
File “/tmp/algo2598469712388563212/gamelib/game_state.py”, line 270, in can_spawn
if not self.game_map.in_arena_bounds(location):
File “/tmp/algo2598469712388563212/gamelib/game_map.py”, line 92, in in_arena_bounds
row_size = y + 1
TypeError: can only concatenate list (not “int”) to list

I think that method game_state.can_spawn expects only one location as parametr, but you are passing list of locations.

1 Like

Yes, you were right, thank you!

1 Like