Commit graph

10 commits

Author SHA1 Message Date
6e5b7c0b35 Remove superfluous 'format!' call 2022-07-25 16:41:27 +02:00
e3ea602bb9 Remove spurious links in 'Square' documentation 2022-07-22 10:37:12 +02:00
337b8f61f4 Add 'NUM_VARIANTS' constant to all 'board' enums 2022-07-22 10:36:59 +02:00
2c140d0481 Consistently use 'Self' type in 'impl' blocks 2022-07-22 10:36:59 +02:00
66e5109157 Statically assert zero-cost invariants
All checks were successful
continuous-integration/drone/push Build is passing
Since some or all of those invariants will come in handy to ensure we
use as little memory as possible, to maximize the speed of the move
generation later on.
2022-07-18 11:05:41 +02:00
e8b5c9f73c Use 'Square::index' in 'Square::{file,rank}_index' 2022-07-18 00:33:24 +02:00
17b8ee5eb3 Add 'Square::index' 2022-07-18 00:33:24 +02:00
87473908cf Add 'Square' constructor from 'File', 'Rank' 2022-07-17 21:26:03 +02:00
77b15edc36 Don't return 'Bitboard' from 'Square::{file,rank}' 2022-07-17 21:26:03 +02:00
755e891b17 Add 'Bitboard' and 'Square' definitions 2022-07-16 14:41:07 +02:00