bots game : error move not allowed #32

Closed
opened 2025-01-25 17:15:56 +01:00 by henri · 2 comments
Owner
     Running `target/debug/client_cli --bot dummy,dummy`
[2025-01-25T16:09:52Z INFO  store::game_rules_moves] Move not allowed : MustFillQuarter
[2025-01-25T16:09:52Z ERROR store::game] rules not followed
event not valid : Move { player_id: 1, moves: (CheckerMove { from: 1, to: 5 }, CheckerMove { from: 1, to: 4 }) }
whot?>

-------------------------------
InGame > bot > Move
Rolled dice : 3 & 4
Rolled dice jans : {FilledQuarter: [(CheckerMove { from: 2, to: 6 }, CheckerMove { from: 2, to: 5 }), (CheckerMove { from: 2, to: 5 }, CheckerMove { from: 2, to: 6 })]}
Last move : CheckerMove { from: 24, to: 20 } , CheckerMove { from: 24, to: 23 }

Player      :: holes :: points
1. bot      :: 0     :: 8
2. bot      :: 0     :: 0
-------------------------------

     13   14   15   16   17   18      19   20   21   22   23   24
  ----------------------------------------------------------------
 |                               | |   X    X    X    X    X    X |
 |                               | |   X    X    X    X    X    X |
 |                               | |                       X    X |
 |                               | |                       X      |
 |                               | |                              |
 |                               | |                              |
 |                               | |                              |
 |                               | |                              |
 |                               | |                              |
 |------------------------------ | | -----------------------------|
 |                               | |                              |
 |                               | |                              |
 |                               | |                              |
 |                               | |                              |
 |                               | |                       O      |
 |                               | |                       O      |
 |                               | |                       O    O |
 |                               | |             O    O    O    O |
 |                             O | |   O    O    O    O    O    O |
  ----------------------------------------------------------------
    12   11   10    9    8    7        6    5    4    3    2    1
``` Running `target/debug/client_cli --bot dummy,dummy` [2025-01-25T16:09:52Z INFO store::game_rules_moves] Move not allowed : MustFillQuarter [2025-01-25T16:09:52Z ERROR store::game] rules not followed event not valid : Move { player_id: 1, moves: (CheckerMove { from: 1, to: 5 }, CheckerMove { from: 1, to: 4 }) } whot?> ------------------------------- InGame > bot > Move Rolled dice : 3 & 4 Rolled dice jans : {FilledQuarter: [(CheckerMove { from: 2, to: 6 }, CheckerMove { from: 2, to: 5 }), (CheckerMove { from: 2, to: 5 }, CheckerMove { from: 2, to: 6 })]} Last move : CheckerMove { from: 24, to: 20 } , CheckerMove { from: 24, to: 23 } Player :: holes :: points 1. bot :: 0 :: 8 2. bot :: 0 :: 0 ------------------------------- 13 14 15 16 17 18 19 20 21 22 23 24 ---------------------------------------------------------------- | | | X X X X X X | | | | X X X X X X | | | | X X | | | | X | | | | | | | | | | | | | | | | | | | | | |------------------------------ | | -----------------------------| | | | | | | | | | | | | | | | | | | | O | | | | O | | | | O O | | | | O O O O | | O | | O O O O O O | ---------------------------------------------------------------- 12 11 10 9 8 7 6 5 4 3 2 1 ```
henri added this to the Trictrac project 2025-01-25 17:15:56 +01:00
henri added the
Kind/Bug
label 2025-01-25 17:16:44 +01:00
henri added this to the Bots milestone 2025-01-25 17:16:51 +01:00
Author
Owner

cf. commentaires dans game_rules_moves.rs::get_possible_moves_sequences_by_dices()

cf. commentaires dans game_rules_moves.rs::get_possible_moves_sequences_by_dices()
Author
Owner

Faire une fonction check_moves_for_rules(rules) de vérification d'une liste de règles, et ne pas mettre la règle testée dans la liste si on l'appelle pour tester cette même règle.

Faire une fonction check_moves_for_rules(rules) de vérification d'une liste de règles, et ne pas mettre la règle testée dans la liste si on l'appelle pour tester cette même règle.
henri closed this issue 2025-01-31 08:47:42 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: henri/trictrac#32
No description provided.