Rook is a UCI compatible chess engine that is under continuous development written in Python. Extensive research has been done to base the design around the best chess engines in the world like Stockfish.
For example, Rook uses bitboards to track the chess pieces. These are 64-bit unsigned integers that tell you the location of each individual piece when combined with some neat tricks!
uv run ./rook/main.py
Hello from rook!
--------------------------------
8 | ♜ | ♞ | ♝ | ♛ | ♚ | ♝ | ♞ | ♜ |
--------------------------------
7 | ♟ | ♟ | ♟ | ♟ | ♟ | ♟ | ♟ | ♟ |
--------------------------------
6 | | | | | | | | |
--------------------------------
5 | | | | | | | | |
--------------------------------
4 | | | | | | | | |
--------------------------------
3 | | | | | | | | |
--------------------------------
2 | ♙ | ♙ | ♙ | ♙ | ♙ | ♙ | ♙ | ♙ |
--------------------------------
1 | ♖ | ♘ | ♗ | ♕ | ♔ | ♗ | ♘ | ♖ |
--------------------------------
A B C D E F G H
Oracle uses personal attributes such as age and gender, along with cutting-edge research and scientific methods, to predict a person's life expectancy.
1{
2 "date_of_birth": "2000-04-18",
3 "components": [
4 {
5 "type": "LIFE_TABLE",
6 "adjustment": 80.41
7 },
8 {
9 "type": "SMOKING",
10 "adjustment": -0.3569482496194825
11 }
12 ],
13 "age": 25,
14 "life_expectancy": 80.05305175038052,
15 "date_of_death": "2080-04-17",
16 "milliseconds_till_death": 1732143131211
17}
A straight-to-the-point no funny business implementation of Wordle.