chesslablab / chess-server

Asynchronous PHP server that provides chess services over a WebSocket connection.
https://chesslablab.github.io/chess-server/
MIT License
51 stars 24 forks source link

⌨ Implement the `/ascii` command #427

Closed programarivm closed 2 weeks ago

programarivm commented 2 weeks ago

The Command Line Console (CLC) allows to play any chess variant blindfold without using a board actually, however, sometimes you want to look at the chessboard. It is for this purpose that the /ascii command needs to be implemented, it will print an ASCII representation of the board.

r  n  b  q  k  b  n  r
p  p  .  .  p  p  p  p
.  .  .  p  .  .  .  .
.  .  .  .  .  .  .  .
.  .  .  N  P  .  .  .
.  .  .  .  .  .  .  .
P  P  P  .  .  P  P  P
R  N  B  Q  K  B  .  R

See: