game-solver 0.1.0

Solve any combinatorial game
Documentation
  • Coverage
  • 66.67%
    14 out of 21 items documented0 out of 16 items with examples
  • Size
  • Source code size: 32.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.59 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tristan-f-r/game-solver
    2 0 8
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LeoDog896

game-solver

solve any sequential game (currently only works with combinatorial games, or 2-player perfect-information sequential games)

Features

Optimization Tips

Move Ordering

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.

Efficient Bitboards

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.

Credits

A lot of the algorithms have been inspired by Pascal Pons's excellent blog and the general Chessprogramming wiki.

Future Plans (Contributions Welcome!)

  • Game Tree Visualization
  • Parallelization as a feature
  • 2+ player games (multiple agents w/ minimax instead of negamax)
  • Non-perfect information games
    • Games that involve chance