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 Gameinstance to saveWarning
Does not check is the result is an even or a victory
-