public static Board GetStartingBoard() { Piece[] squares = new Piece[64]; BoardStatus status = new BoardStatus(); var blackInitial = new List<int>() { 1,3,5,7,8,10,12,14,17,19,21,23 }; foreach (var i in blackInitial) { squares[i] = new BlackChecker(); } var whiteInitial = new List<int>() { 40, 42, 44, 46, 49, 51, 53, 55, 56, 58, 60, 62 }; foreach (var i in whiteInitial) { squares[i] = new WhiteCheker(); } status.WhiteTurn = true; status.Moves = 1; return new Board(squares, status); }
public Board(Piece[] squares, BoardStatus status) { this.squares = squares; this.status = status; }