var chessCharm = require('chess-charm');
var board = chessCharm()
.showBoard()
.setOpponent({name:'jamal',color:'black'})
.setWhiteName({name:'Johannes',color:'white'})
.showOpponent()
.showPlayer();
board
.move('e2e4')
.move('e7e5')
.move('g1f3')
.move('d7d6')
.move('f1b5')
.move('b8c6')
.move('e1g1');
Draw chess positions, make moves, and see a chess board in beautiful ansi + unicode chess fonts!
Select a piece with the arrow keys, and move the arrow keys to the piece's desired location,
After you have a piece selected, then press m!
View this example in ./test.js
Updates the board with the move (given in Modified Standard Algebraic Notation)
Shows the board as it currently stands.
Sets your player.
Sets the opponent.
Push "CTRL + C"