dannyhammer / TwoPlayerGames

Undergraduate research into the mechanics of simple two-player games.
3 stars 2 forks source link

Make a generalized csv writer #71

Closed dannyhammer closed 3 years ago

dannyhammer commented 3 years ago

Now that each game will generate data in the same dictionary format (keys = board state, values = (playername, move)), it should be possible to create a single csv_writer function that writes game data to a csv.

Rows can be individual games, columns can be the dictionary keys (game states) and the entries will be the player name and move tuples.