Beispiel #1
0
 void MakeMove(Gesture gesture)
 {
     if (CurrentGame.IsNull())
     {
         return;
     }
     CurrentGame.MakeMove(gesture);
 }
Beispiel #2
0
 public void MakeMove(Gesture gesture)
 {
     if (!currentCommitAndReveal.IsNull())
     {
         return;
     }
     currentCommitAndReveal = new GameMoveTransactionService.CommitAndReveal(gesture, me.Id);
     if (game.State.Equals(ChainTypes.GameState.ExpectingCommitMoves))
     {
         currentCommitAndReveal.Commit(game);
     }
 }