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

🖵 Console example: Start a classical chess game #530

Open
programarivm opened this issue Nov 15, 2024 · 0 comments
Open

🖵 Console example: Start a classical chess game #530

programarivm opened this issue Nov 15, 2024 · 0 comments
Assignees

Comments

@programarivm
Copy link
Member

screencapture-chesslablab-org-en-console-2024-11-15-20_20_37
Figure 1. Visit the website and click on the Console link at the bottom of the page.

Add an example on how to start a classical chess game and make a few moves in PGN format.

ChesslaBlab console
PHP Chess version: 1.4.72
For details go to: https://chesslablab.github.io/chess-server/

/start {"variant": "classical", "mode": "analysis"}

{"variant":"classical","mode":"analysis","turn":"w","movetext":"","fen":["rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -"]}

/play {"color":"w","pgn":"e4"}

{"turn":"b","movetext":"1.e4","fen":"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3","variant":"classical","isValid":true}

/play {"color":"b","pgn":"e5"}

{"turn":"w","movetext":"1.e4 e5","fen":"rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e6","variant":"classical","isValid":true}

/play {"color":"w","pgn":"Nf3"}

{"turn":"b","movetext":"1.e4 e5 2.Nf3","fen":"rnbqkbnr/pppp1ppp/8/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq -","variant":"classical","isValid":true}

/ascii

r n b q k b n r
p p p p . p p p
. . . . . . . .
. . . . p . . .
. . . . P . . .
. . . . . N . .
P P P P . P P P
R N B Q K B . R
@programarivm programarivm self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant