Home
last modified time | relevance | path

Searched refs:king_side (Results 1 – 6 of 6) sorted by relevance

/dports/devel/cppurses/CPPurses-0.3-5-g342a389/demos/chess/src/
H A Dstandard_rules.cpp89 Side king_side{side_at(state, position)}; in get_king_moves() local
94 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
100 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
106 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
112 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
119 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
126 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
133 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
140 if (is_valid(next) && side_at(state, next) != king_side) { in get_king_moves()
/dports/games/chessx/chessx-1.5.6/dep/scid/code/src/
H A Dfastgame.h234 template <colorT color> squareT castle(bool king_side) { in castle() argument
235 const squareT king_to = king_side ? square_Relative(color, G1) in castle()
237 const squareT rook_to = king_side ? square_Relative(color, F1) in castle()
241 const int rook_idx = castlingRook_[color][king_side ? 1 : 0]; in castle()
H A Dposition.h129 template <bool king_side> squareT castlingRookSq(colorT color) const;
249 bool validCastling(bool king_side, bool check_legal) const;
H A Dposition.cpp288 template <bool king_side> squareT Position::castlingRookSq(colorT color) const { in castlingRookSq()
289 return king_side ? square_Relative(color, H1) in castlingRookSq()
293 bool Position::validCastling(bool king_side, bool check_legal) const { in validCastling() argument
295 const squareT rookFrom = king_side ? castlingRookSq<true>(ToMove) in validCastling()
297 const squareT rookTo = king_side ? square_Relative(ToMove, F1) in validCastling()
299 const squareT kingTo = king_side ? square_Relative(ToMove, G1) in validCastling()
/dports/games/scid/scid/gtest/
H A Dtest_decodemove.cpp405 [&](bool king_side) { // CASTLE in TEST() argument
406 sm.to = sm.from + (king_side ? 2 : -2); in TEST()
/dports/games/scid/scid/src/
H A Dfastgame.h217 template <colorT color> squareT castle(bool king_side) { in castle() argument
220 if (king_side) { // King Side in castle()