players.Memory module

class Memory[source]
addGame(game)[source]

Add a game in the dictionary pastGames :

  • key = hash of the state before the wining movement
  • value = the Movement.place (couple [x,y]) that linked to the victory
Parameters:game (Game) – the ended Game instance to save

Warning

Does not check is the result is an even or a victory