Game/GameManager.cs
/// <summary>
/// Load the game board in with the given starting pieces
/// </summary>
Load the game board in with the given starting pieces
Load the game board in with the given starting pieces
private void LoadTiles()
        {
            for (int i = 0; i < 64; i++)
            {
                Board.Tiles[i] = new Tile((Coords) i);
                if (!Board.Tiles[i].Coords.HasStartingPiece())
                    continue;
                Piece piece = Board.Tiles[i].Coords.GetStartingPiece();
                Board.Tiles[i].Piece = piece;
                AddPieceToBoard(piece);
            }
        }
private void LoadTiles ( ) { for ( int i = 0 ; i < 64 ; i ++ ) { Board . Tiles [ i ] = new Tile ( ( Coords ) i ) ; if ( ! Board . Tiles [ i ] . Coords . HasStartingPiece ( ) ) continue ; Piece piece = Board . Tiles [ i ] . Coords . GetStartingPiece ( ) ; Board . Tiles [ i ] . Piece = piece ; AddPieceToBoard ( piece ) ; } }
Load the game board in with the given starting pieces
Load the game board in with the given starting pieces