doc
This commit is contained in:
parent
f2a89f60bc
commit
73cc6ee67e
|
|
@ -1,46 +1,52 @@
|
||||||
# Inspirations
|
# Inspirations
|
||||||
|
|
||||||
tools
|
tools
|
||||||
- config clippy ?
|
|
||||||
- bacon : tests runner (ou loom ?)
|
- config clippy ?
|
||||||
|
- bacon : tests runner (ou loom ?)
|
||||||
|
|
||||||
## Rust libs
|
## Rust libs
|
||||||
|
|
||||||
cf. https://blessed.rs/crates
|
cf. <https://blessed.rs/crates>
|
||||||
|
|
||||||
nombres aléatoires avec seed : https://richard.dallaway.com/posts/2021-01-04-repeat-resume/
|
nombres aléatoires avec seed : <https://richard.dallaway.com/posts/2021-01-04-repeat-resume/>
|
||||||
|
|
||||||
- cli : https://lib.rs/crates/pico-args ( ou clap )
|
- cli : <https://lib.rs/crates/pico-args> ( ou clap )
|
||||||
- reseau async : tokio
|
- reseau async : tokio
|
||||||
- web serveur : axum (uses tokio)
|
- web serveur : axum (uses tokio)
|
||||||
- https://fasterthanli.me/series/updating-fasterthanli-me-for-2022/part-2#the-opinions-of-axum-also-nice-error-handling
|
- <https://fasterthanli.me/series/updating-fasterthanli-me-for-2022/part-2#the-opinions-of-axum-also-nice-error-handling>
|
||||||
- db : sqlx
|
- db : sqlx
|
||||||
|
|
||||||
|
|
||||||
- eyre, color-eyre (Results)
|
- eyre, color-eyre (Results)
|
||||||
- tracing (logging)
|
- tracing (logging)
|
||||||
- rayon ( sync <-> parallel )
|
- rayon ( sync <-> parallel )
|
||||||
|
|
||||||
- front : yew + tauri
|
- front : yew + tauri
|
||||||
- egui
|
- egui
|
||||||
|
|
||||||
- https://docs.rs/board-game/latest/board_game/
|
- <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>
|
||||||
|
|
||||||
## Others
|
## Others
|
||||||
- plugins avec https://github.com/extism/extism
|
|
||||||
|
- plugins avec <https://github.com/extism/extism>
|
||||||
|
|
||||||
## Backgammon existing projects
|
## Backgammon existing projects
|
||||||
|
|
||||||
* go : https://bgammon.org/blog/20240101-hello-world/
|
- go : <https://bgammon.org/blog/20240101-hello-world/>
|
||||||
- protocole de communication : https://code.rocket9labs.com/tslocum/bgammon/src/branch/main/PROTOCOL.md
|
- protocole de communication : <https://code.rocket9labs.com/tslocum/bgammon/src/branch/main/PROTOCOL.md>
|
||||||
* ocaml : https://github.com/jacobhilton/backgammon?tab=readme-ov-file
|
- ocaml : <https://github.com/jacobhilton/backgammon?tab=readme-ov-file>
|
||||||
cli example : https://www.jacobh.co.uk/backgammon/
|
cli example : <https://www.jacobh.co.uk/backgammon/>
|
||||||
* lib rust backgammon
|
- lib rust backgammon
|
||||||
- https://github.com/carlostrub/backgammon
|
- <https://github.com/carlostrub/backgammon>
|
||||||
- https://github.com/marktani/backgammon
|
- <https://github.com/marktani/backgammon>
|
||||||
* network webtarot
|
- network webtarot
|
||||||
* front ?
|
- front ?
|
||||||
|
|
||||||
|
|
||||||
## cli examples
|
## cli examples
|
||||||
|
|
||||||
|
|
@ -48,7 +54,7 @@ nombres aléatoires avec seed : https://richard.dallaway.com/posts/2021-01-04-re
|
||||||
|
|
||||||
(No game) new game
|
(No game) new game
|
||||||
gnubg rolls 3, anthon rolls 1.
|
gnubg rolls 3, anthon rolls 1.
|
||||||
|
|
||||||
GNU Backgammon Positions ID: 4HPwATDgc/ABMA
|
GNU Backgammon Positions ID: 4HPwATDgc/ABMA
|
||||||
Match ID : MIEFAAAAAAAA
|
Match ID : MIEFAAAAAAAA
|
||||||
+12-11-10--9--8--7-------6--5--4--3--2--1-+ O: gnubg
|
+12-11-10--9--8--7-------6--5--4--3--2--1-+ O: gnubg
|
||||||
|
|
@ -64,7 +70,7 @@ nombres aléatoires avec seed : https://richard.dallaway.com/posts/2021-01-04-re
|
||||||
| O X | | X O |
|
| O X | | X O |
|
||||||
| O X | | X O | 0 points
|
| O X | | X O | 0 points
|
||||||
+13-14-15-16-17-18------19-20-21-22-23-24-+ X: anthon
|
+13-14-15-16-17-18------19-20-21-22-23-24-+ X: anthon
|
||||||
|
|
||||||
gnubg moves 8/5 6/5.
|
gnubg moves 8/5 6/5.
|
||||||
|
|
||||||
### jacobh
|
### jacobh
|
||||||
|
|
@ -72,33 +78,37 @@ nombres aléatoires avec seed : https://richard.dallaway.com/posts/2021-01-04-re
|
||||||
Move 11: player O rolls a 6-2.
|
Move 11: player O rolls a 6-2.
|
||||||
Player O estimates that they have a 90.6111% chance of winning.
|
Player O estimates that they have a 90.6111% chance of winning.
|
||||||
|
|
||||||
Os borne off: none
|
Os borne off: none
|
||||||
24 23 22 21 20 19 18 17 16 15 14 13
|
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 |
|
| 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 O O O | | O O |
|
||||||
| | | |
|
| O | | |
|
||||||
| | | |
|
| | X | |
|
||||||
| | | |
|
| | | |
|
||||||
| | | |
|
| | | |
|
||||||
|------------------------------| |------------------------------|
|
| | | |
|
||||||
| | | |
|
| | | |
|
||||||
| | | |
|
|------------------------------| |------------------------------|
|
||||||
| | | |
|
| | | |
|
||||||
| | | |
|
| | | |
|
||||||
| X | | |
|
| | | |
|
||||||
| X X | | X |
|
| | | |
|
||||||
| X X X | | X O |
|
| X | | |
|
||||||
| X X X | | X O O |
|
| 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
|
|
||||||
|
---
|
||||||
|
|
||||||
|
1 2 3 4 5 6 7 8 9 10 11 12
|
||||||
|
Xs borne off: none
|
||||||
|
|
||||||
Move 12: player X rolls a 6-3.
|
Move 12: player X rolls a 6-3.
|
||||||
Your move (? for help): bar/22
|
Your move (? for help): bar/22
|
||||||
|
|
@ -107,13 +117,12 @@ 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.
|
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".
|
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:
|
Unlike in standard notation, you should enter each counter movement individually. For example:
|
||||||
24/18 18/13
|
24/18 18/13
|
||||||
bar/3 13/10 13/10 8/5
|
bar/3 13/10 13/10 8/5
|
||||||
2/off 1/off
|
2/off 1/off
|
||||||
You can also enter these commands:
|
You can also enter these commands:
|
||||||
p - show the previous move
|
p - show the previous move
|
||||||
n - show the next move
|
n - show the next move
|
||||||
<enter> - toggle between showing the current and last moves
|
<enter> - toggle between showing the current and last moves
|
||||||
help - show this help text
|
help - show this help text
|
||||||
quit - abandon game
|
quit - abandon game
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue