Exploring various ways to create bots that play tetris, written in Rust.
List of packages (last updated 2025-03-11)
- Core
libtetris- Optimized tetris game model, move generation, and AI interface
- GUI
sdl-gui- Simple tetris GUI written using SDL2web-wasm- Compile tetris bots to WASM to run in the browserweb-ui- Browser interface to demo the various tetris bots (See live version at https://thesilican.com/tetris)
- Bots
tree-bot- Performs a dfs tree search on the game state to find the optimal move, guided by simple heuristicspc-finder- Finds perfect clear setups
You may need to install git lfs to clone this repo properly.
