Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Arduino code returning an error after consecutive moves #261

Open
nashirj opened this issue Aug 16, 2022 · 1 comment
Open

Debug Arduino code returning an error after consecutive moves #261

nashirj opened this issue Aug 16, 2022 · 1 comment
Labels
General Software Team Game loop, web app, GUI, etc Hardware Team Arduino, Electrical, Mechanical

Comments

@nashirj
Copy link
Member

nashirj commented Aug 16, 2022

Input:

% Move chess piece from b1 to c3 
~0EGII1

% Move from piece from f7 to f5
~0QOMO0

Output:

Welcome to Knightro's Gambit
Note: When sending debug messages to board or using a test file that is comprised of `Message` type messages, updating and maintaining game state is not supported.
It is required that all messages in a .txt testfile are valid.

RUNNING IN TEST MODE...

r n b q k b n r 8
p p p p p p p p 7
. . . . . . . . 6
. . . . . . . . 5
. . . . . . . . 4
. . . . . . . . 3
P P P P P P P P 2
R N B Q K B N R 1
a b c d e f g h 

Board Status: IDLE

Board Status: IDLE
Sending message "~0EGII0" to arduino

Board Status: IDLE
Sending message "~0EGII0" to arduino
Received message: ~100

Board Status: EXECUTING_MOVE
Received message: ~000

Board Status: IDLE
Removed message from queue

Board Status: IDLE

Board Status: IDLE
Sending message "~0QOMO1" to arduino

Board Status: IDLE
Sending message "~0QOMO1" to arduino
Received message: ~101

Board Status: EXECUTING_MOVE
Received message: ~321

Board Status: ERROR
Traceback (most recent call last):
  File "/home/knightr0/knightros-gambit/firmware/raspi/cliinterface.py", line 149, in <module>
    main()
  File "/home/knightr0/knightros-gambit/firmware/raspi/cliinterface.py", line 113, in main
    made_move = game.process(players[current_player])
  File "/home/knightr0/knightros-gambit/firmware/raspi/game.py", line 104, in process
    raise ValueError("Unimplemented, need to handle errors")
ValueError: Unimplemented, need to handle errors
@nashirj nashirj added General Software Team Game loop, web app, GUI, etc Hardware Team Arduino, Electrical, Mechanical labels Aug 16, 2022
@nashirj
Copy link
Member Author

nashirj commented Aug 26, 2022

"~321" corresponds to a movement error, so something is going on in the Arduino code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Software Team Game loop, web app, GUI, etc Hardware Team Arduino, Electrical, Mechanical
Projects
None yet
Development

No branches or pull requests

1 participant