Ejemplo n.º 1
0
 public void HandleInput(object sender, TouchEventArgs args)
 {
     try
     {
         board[args.Position] = side;
         madeTurn(args.Position);
     }
     catch (Exception)
     {
     }
 }
Ejemplo n.º 2
0
 public void HandleInput(object sender, TouchEventArgs args)
 {
     if (gameBoard.Winner)
     {
         return;
     }
     //TODO: think about it
     if (player1 is HumanPlayer)
     {
         (player1 as HumanPlayer).HandleInput(sender, args);
     }
     if (player2 is HumanPlayer)
     {
         (player2 as HumanPlayer).HandleInput(sender, args);
     }
 }