sugyan / yasai

Yet Another Shogi library, for AI development
GNU General Public License v3.0
25 stars 4 forks source link

Implement PartialPosition myself #10

Closed sugyan closed 2 years ago

sugyan commented 2 years ago

benchmark:

test movegen::bench_legal_moves_from_default ... bench:         862 ns/iter (+/- 72)
test movegen::bench_legal_moves_maximum      ... bench:       3,596 ns/iter (+/- 401)
test perft::bench_perft_3_from_maximum_moves ... bench: 250,394,817 ns/iter (+/- 5,209,591)
test perft::bench_perft_5_from_default       ... bench: 246,018,363 ns/iter (+/- 3,624,376)

(MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports), 2.8 GHz Quad-Core Intel Core i7, 16 GB 2133 MHz LPDDR3)