trictrac/doc/refs/inspirations.md

131 lines
3.4 KiB
Markdown
Raw Normal View History

2024-02-13 20:13:25 +01:00
# Inspirations
tools
2025-08-30 13:28:00 +02:00
- config clippy ?
- bacon : tests runner (ou loom ?)
2024-02-13 20:13:25 +01:00
## Rust libs
2025-08-30 13:28:00 +02:00
cf. <https://blessed.rs/crates>
2024-02-13 20:13:25 +01:00
2025-08-30 13:28:00 +02:00
nombres aléatoires avec seed : <https://richard.dallaway.com/posts/2021-01-04-repeat-resume/>
2024-03-10 20:00:18 +01:00
2025-08-30 13:28:00 +02:00
- cli : <https://lib.rs/crates/pico-args> ( ou clap )
2024-02-13 20:13:25 +01:00
- reseau async : tokio
- web serveur : axum (uses tokio)
2025-08-30 13:28:00 +02:00
- <https://fasterthanli.me/series/updating-fasterthanli-me-for-2022/part-2#the-opinions-of-axum-also-nice-error-handling>
2024-02-13 20:13:25 +01:00
- db : sqlx
- eyre, color-eyre (Results)
- tracing (logging)
- rayon ( sync <-> parallel )
2025-08-30 13:28:00 +02:00
- front : yew + tauri
2025-09-01 14:47:09 +02:00
2024-02-13 20:13:25 +01:00
- egui
2025-08-30 13:28:00 +02:00
- <https://docs.rs/board-game/latest/board_game/>
## network games
- <https://www.mattkeeter.com/projects/pont/>
- <https://github.com/jackadamson/onitama> (wasm, rooms)
- <https://github.com/UkoeHB/renet2>
2025-09-01 14:47:09 +02:00
- <https://github.com/UkoeHB/bevy_simplenet>
2024-02-13 20:13:25 +01:00
## Others
2025-08-30 13:28:00 +02:00
- plugins avec <https://github.com/extism/extism>
2024-02-13 20:13:25 +01:00
2025-08-30 13:28:00 +02:00
## Backgammon existing projects
2024-02-17 12:55:36 +01:00
2025-08-30 13:28:00 +02:00
- go : <https://bgammon.org/blog/20240101-hello-world/>
- protocole de communication : <https://code.rocket9labs.com/tslocum/bgammon/src/branch/main/PROTOCOL.md>
- ocaml : <https://github.com/jacobhilton/backgammon?tab=readme-ov-file>
cli example : <https://www.jacobh.co.uk/backgammon/>
- lib rust backgammon
- <https://github.com/carlostrub/backgammon>
- <https://github.com/marktani/backgammon>
- network webtarot
- front ?
2024-02-17 12:55:36 +01:00
## cli examples
### GnuBackgammon
(No game) new game
gnubg rolls 3, anthon rolls 1.
2025-08-30 13:28:00 +02:00
2024-02-17 12:55:36 +01:00
GNU Backgammon Positions ID: 4HPwATDgc/ABMA
Match ID : MIEFAAAAAAAA
+12-11-10--9--8--7-------6--5--4--3--2--1-+ O: gnubg
| X O | | O X | 0 points
| X O | | O X | Rolled 31
| X O | | O |
| X | | O |
| X | | O |
^| |BAR| | (Cube: 1)
| O | | X |
| O | | X |
| O X | | X |
| O X | | X O |
| O X | | X O | 0 points
+13-14-15-16-17-18------19-20-21-22-23-24-+ X: anthon
2025-08-30 13:28:00 +02:00
2024-02-17 12:55:36 +01:00
gnubg moves 8/5 6/5.
### jacobh
Move 11: player O rolls a 6-2.
Player O estimates that they have a 90.6111% chance of winning.
2025-08-30 13:28:00 +02:00
Os borne off: none
24 23 22 21 20 19 18 17 16 15 14 13
---
| v v v v v v | | v v v v v v |
| | | |
| X O O O | | O O O |
| X O O O | | O O |
| O | | |
| | X | |
| | | |
| | | |
| | | |
| | | |
|------------------------------| |------------------------------|
| | | |
| | | |
| | | |
| | | |
| X | | |
| X X | | X |
| X X X | | X O |
| X X X | | X O O |
| | | |
| ^ ^ ^ ^ ^ ^ | | ^ ^ ^ ^ ^ ^ |
---
1 2 3 4 5 6 7 8 9 10 11 12
Xs borne off: none
2024-02-17 12:55:36 +01:00
Move 12: player X rolls a 6-3.
Your move (? for help): bar/22
Illegal move: it is possible to move more.
Your move (? for help): ?
Enter the start and end positions, separated by a forward slash (or any non-numeric character), of each counter you want to move.
Each position should be number from 1 to 24, "bar" or "off".
Unlike in standard notation, you should enter each counter movement individually. For example:
2025-08-30 13:28:00 +02:00
24/18 18/13
bar/3 13/10 13/10 8/5
2/off 1/off
2024-02-17 12:55:36 +01:00
You can also enter these commands:
2025-08-30 13:28:00 +02:00
p - show the previous move
n - show the next move
<enter> - toggle between showing the current and last moves
help - show this help text
quit - abandon game