• Home
  • Raw
  • Download

Lines Matching refs:Row

13   constexpr Board addQueen(int Row, int Col) const {  in addQueen()
14 return Board(State | ((uint64_t)Row << (Col * 4))); in addQueen()
19 constexpr bool ok(int Row, int Col) const { in ok()
20 return okRecurse(Row, Col, 0); in ok()
22 constexpr bool okRecurse(int Row, int Col, int CheckCol) const { in okRecurse()
24 getQueenRow(CheckCol) == Row ? false : in okRecurse()
25 getQueenRow(CheckCol) == Row + (Col - CheckCol) ? false : in okRecurse()
26 getQueenRow(CheckCol) == Row + (CheckCol - Col) ? false : in okRecurse()
27 okRecurse(Row, Col, CheckCol + 1); in okRecurse()
29 constexpr bool at(int Row, int Col) const { in at()
30 return getQueenRow(Col) == Row; in at()
36 constexpr Board buildBoardScan(int N, int Col, int Row, const Board &B);
38 int N, int Col, int Row, const Board &B) { in tryBoard() argument
39 return Try.Failed ? buildBoardScan(N, Col, Row, B) : Try; in tryBoard()
41 constexpr Board buildBoardScan(int N, int Col, int Row, const Board &B) { in buildBoardScan() argument
42 return Row == N ? Board(0, true) : in buildBoardScan()
43 B.ok(Row, Col) ? in buildBoardScan()
44 tryBoard(buildBoardRecurse(N, Col + 1, B.addQueen(Row, Col)), in buildBoardScan()
45 N, Col, Row+1, B) : in buildBoardScan()
46 buildBoardScan(N, Col, Row + 1, B); in buildBoardScan()
57 constexpr bool Board::check(const char *p, int Row, int Col) const { in check() argument
59 *p == '\n' ? check(p+1, Row+1, 0) : in check()
60 *p == 'o' ? at(Row, Col) && check(p+1, Row, Col+1) : in check()
61 *p == '-' ? !at(Row, Col) && check(p+1, Row, Col+1) : in check()