change history of GameStorage to calculations and remove snake_start add constrictor test in test_run scripts
This commit is contained in:
@@ -42,12 +42,11 @@ class GameStorage:
|
||||
save_file(os.path.join(self.folder, path), {
|
||||
"snake": {
|
||||
"type": self.snake_type,
|
||||
"choices": self.snake_history,
|
||||
"calculations": self.snake_history,
|
||||
},
|
||||
"game": {
|
||||
"type": self._get_type_of_gameboard(),
|
||||
"infos": self.game_type,
|
||||
"snake_start": self.start_position,
|
||||
"final_turns": self.final_turns,
|
||||
"gameboard": self.game_board,
|
||||
"my_moves": self.moves,
|
||||
|
||||
+5
-2
@@ -1,4 +1,7 @@
|
||||
BATTLESNAKE_CLI=battlesnake_cli_1.2.3_Linux_x86_64/battlesnake
|
||||
|
||||
#$BATTLESNAKE_CLI play -W 11 -H 11 --name 'Python Starter Project' --url http://localhost:8000 -g solo --browser
|
||||
$BATTLESNAKE_CLI play -W 11 -H 11 --name 'Python Starter Project' --url http://localhost:8000 -g solo --browser --seed 1713099635738952360
|
||||
if [ -z $1 ]; then
|
||||
$BATTLESNAKE_CLI play -W 11 -H 11 --name 'Python Starter Project' --url http://localhost:8000 -g solo --browser --seed 1713099635738952360
|
||||
else
|
||||
$BATTLESNAKE_CLI play -W 11 -H 11 --name 'Python Starter Project' --url http://localhost:8000 -g constrictor --browser --minimumFood 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user