Crates.io | game-solver |
lib.rs | game-solver |
version | 0.1.0 |
source | src |
created_at | 2023-08-03 00:43:02.437043 |
updated_at | 2023-08-03 00:43:02.437043 |
description | Solve any combinatorial game |
homepage | |
repository | https://github.com/LeoDog896/game-solver |
max_upload_size | |
id | 933274 |
size | 32,766 |
solve any sequential game (currently only works with combinatorial games, or 2-player perfect-information sequential games)
This is arguably the most important.
Making sure your Game#possible_moves
function guesses what the best moves are first
can save a lot of time on alpha-beta pruning and iterative deepening.
Use efficient bitboards - you can look at the examples for inspiration, but make sure your board representation is fast, and preferably doesn't need allocation.
A lot of the algorithms have been inspired by Pascal Pons's excellent blog and the general Chessprogramming wiki.