Exemplo n.º 1
0
        private void SelectSquare(int dim0, int dim1)
        {
            if (game.State != AcquireGameStates.PlaceTile)
            {
                return;
            }

            // check if this is a square which the player has already
            foreach (Square tile in game.CurrentPlayer.Tiles)
            {
                if (tile.Dim0 == dim0 && tile.Dim1 == dim1)
                {
                    game.StartTurn(tile);
                    break;
                }
            }

            // move ahead
            AdvanceUI();
        }