36 Commits

Author SHA1 Message Date
b8acc03df1
delete chains.rs file 2025-03-05 22:07:32 -05:00
3608366482
coord stuff 2025-03-05 22:05:15 -05:00
bdb1631b03
clippy 2025-03-05 20:17:50 -05:00
8a7496a492
CoordPair::from_axes 2025-03-05 20:17:48 -05:00
ea7df6a739
a 2025-03-04 15:47:21 -05:00
3341b1b411
create BitBoard::DIRECTIONS 2025-03-04 14:13:37 -05:00
2dc9bbd822
remove unused functions 2025-03-04 14:11:04 -05:00
445f94daf0
fix shift 2025-03-04 14:10:17 -05:00
204ba85202
overhaul chain system
This made the code so fast, that the `board` benchmark became completely useless.
So that benchmark was removed.

Overall, we're looking at a futher 20% performance increase in `future_moves`
2025-03-04 13:29:18 -05:00
fa7ad34dcb
posmap change 2025-03-04 11:13:16 -05:00
57e61e6f9a
s 2025-03-03 17:36:46 -05:00
c648be20aa
Board: add random 2025-03-03 11:35:36 -05:00
97d914238c
bench: add board place benchmark 2025-02-28 20:54:05 -05:00
d97a432066
chains: only keep non-empty chains 2025-02-28 20:29:55 -05:00
7b5f84bcb2
use proper type for bitboard indexing 2025-02-28 18:57:31 -05:00
72b146db55
clippy 2025-02-28 18:21:58 -05:00
fc02a9e512
use LazyLock instead of lazy_static 2025-02-28 18:10:39 -05:00
00238fc1f1
coords: use num::Integer::div_mod_floor for from_index 2025-02-27 23:36:53 -05:00
cbf47482ad
simplify board functions 2025-02-27 23:32:20 -05:00
a2f5e79aba
add comment regarding CoordPair performance 2025-02-27 21:07:07 -05:00
6ae1726010
abstract away more coordinates 2025-02-27 21:00:18 -05:00
992ca01169
bitboard: use Coord type 2025-02-27 12:38:11 -05:00
8719d31c38
simplify PosMap + BoardValueMap logic 2025-02-26 23:58:52 -05:00
abee9447ab
remove unneeded const_assert 2025-02-26 23:53:43 -05:00
7ec8a66a4e
switch coordinates to global 'Coord' type 2025-02-26 23:50:40 -05:00
60aaa883c1
format 2025-02-22 19:51:03 -05:00
52cf81ec58
refactor chains file 2025-02-22 19:50:32 -05:00
c8ac4ce84b
move get_index to misc.rs 2025-02-22 19:41:50 -05:00
7c4f05af3e
bitboard refactoring 2025-02-22 19:35:43 -05:00
6d9be3dbe6
nits 2025-02-22 18:42:09 -05:00
6e1e8dac11
use chain.get instead of Some 2025-02-21 10:50:31 -05:00
2011ae001b
cleanup 2025-02-20 19:33:15 -05:00
d29095bc9d
place weighting 2025-02-20 19:14:31 -05:00
e1d83825b7
initial BVM usage (halfs performance :( ) 2025-02-20 16:40:11 -05:00
dc9432b07b
initial BoardValueMap 2025-02-20 16:24:42 -05:00
1fe7658deb
split off repr 2025-02-20 16:06:50 -05:00