Skip to content

Commit

Permalink
Reduce board size
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeybohm committed Sep 14, 2023
1 parent 657bf0a commit 285d28c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions engine/src/board.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,18 @@ namespace wisdom
// Keep track of hashing information.
BoardCode my_code;

// Keep track of the material on the board.
Material my_material;

// Keep track of the positions on the board.
Position my_position;

// Number of half moves since pawn or capture.
int my_half_move_clock = 0;

// Number of full moves, updated after black moves.
int my_full_move_clock = 1;

// Keep track of the positions on the board.
Position my_position;

// Keep track of the material on the board.
Material my_material;

// positions of the kings.
array<Coord, Num_Players> my_king_pos;
};
Expand Down
2 changes: 1 addition & 1 deletion engine/src/material.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace wisdom
int my_score[Num_Players] {};

// Count of pieces on either side:
array<array<int, Num_Piece_Types>, Num_Players> my_piece_count {};
array<array<int8_t, Num_Piece_Types>, Num_Players> my_piece_count {};
};
}

Expand Down

0 comments on commit 285d28c

Please sign in to comment.