public GoGame CreateNewGame(Stream data) { GoGame game = new GoGame(); Games[game.Id] = game; Console.WriteLine(string.Format("Created game with ID {0}.", game.Id)); return game; }
public static Boolean CheckAndMarkComplete(GoGame game) { if (game.Complete) { return true; } if (game.MoveCount > 1000) { game.Complete = true; } return game.Complete; }