1
0
Fork 0
python-chess running in Cartesi RISC-V virtual machine. https://spacecruft.org/deepcrayon/cartesi-python-chess
 
 
Go to file
server bd2ad28926 good pgn 2021-11-17 11:55:16 -07:00
cartesi-python-chess-cartesi-img python-chess on cartesi 2021-11-17 11:47:22 -07:00
.gitignore ignore vim 2021-11-17 11:52:06 -07:00
README.md good pgn 2021-11-17 11:55:16 -07:00
build-cartesi-cartesi-python-chess python-chess on cartesi 2021-11-17 11:47:22 -07:00
cartesi-buildroot-config python-chess on cartesi 2021-11-17 11:47:22 -07:00
do-all-cartesi-python-chess python-chess on cartesi 2021-11-17 11:47:22 -07:00
edit-mntfs-cartesi-cartesi-python-chess python-chess on cartesi 2021-11-17 11:47:22 -07:00
edit-rootfs-cartesi-cartesi-python-chess python-chess on cartesi 2021-11-17 11:47:22 -07:00
run-cartesi-cartesi-python-chess python-chess on cartesi 2021-11-17 11:47:22 -07:00

README.md

Cartesi python-chess

Crufty scripts to build disk images to run under the Cartesi RISC-V machine emulator that verify a chess game. Similar to the Cartesi example, but this is in python using python-chess, not javascript.

Output

Good pgn

cartesi-python-chess$ ./build-cartesi-cartesi-python-chess ; ./run-cartesi-cartesi-python-chess 
copying from directory cartesi-python-chess-cartesi-img

         .
        / \
      /    \
\---/---\  /----\
 \       X       \
  \----/  \---/---\
       \    / CARTESI
        \ /   MACHINE
         '

+ /mnt/cartesi-python-chess/python-chess-validate.py
Errors: []
+ exit

Halted
Cycles: 1201049708

Illegal pgn

cartesi-python-chess$ ./run-cartesi-cartesi-python-chess 

         .
        / \
      /    \
\---/---\  /----\
 \       X       \
  \----/  \---/---\
       \    / CARTESI
        \ /   MACHINE
         '

+ /mnt/cartesi-python-chess/python-chess-validate.py
Errors: [ValueError("illegal san: 'Nc8' in rnbqkbnr/pppp1ppp/8/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2")]
+ exit

Halted
Cycles: 1102514408

Upstream

Python Chess

Cartesi

Contact

y@deepcrayon.fish or jebba/jebbam on discord/lichess/etc.