Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public static Boolean CheckAndMarkComplete(GoGame game)
 {
     if (game.Complete)
     {
         return true;
     }
     if (game.MoveCount > 1000)
     {
         game.Complete = true;
     }
     return game.Complete;
 }