-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ELO | -0.69 +- 1.05 (95%) SPRT | 8.0+0.08s Threads=1 Hash=32MB LLR | 2.97 (-2.94, 2.94) [-3.00, 0.00] GAMES | N: 197768 W: 46691 L: 47083 D: 103994 bench: 3853493
- Loading branch information
1 parent
7d3da06
commit b558ca6
Showing
4 changed files
with
74 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Seer is a UCI chess engine by Connor McMonigle | ||
Copyright (C) 2021 Connor McMonigle | ||
Seer is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Seer is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <chess_types.h> | ||
#include <square.h> | ||
|
||
namespace chess { | ||
|
||
struct piece_configuration { | ||
square_set pawn_{}; | ||
square_set knight_{}; | ||
square_set bishop_{}; | ||
square_set rook_{}; | ||
square_set queen_{}; | ||
square_set king_{}; | ||
|
||
const square_set& get_plane(const piece_type& pt) const { return get_member(pt, *this); } | ||
void set_plane(const piece_type& pt, const square_set& plane) { get_member(pt, *this) = plane; } | ||
}; | ||
|
||
struct sided_piece_configuration : sided<sided_piece_configuration, piece_configuration> { | ||
piece_configuration white; | ||
piece_configuration black; | ||
|
||
sided_piece_configuration() : white{}, black{} {} | ||
}; | ||
|
||
} // namespace chess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters