cc

chess-charm

ANSI Driven Unicode Chess powered by NodeJS

Showing:

Popularity

Downloads/wk

4

GitHub Stars

4

Maintenance

Last Commit

9yrs ago

Contributors

0

Package

Dependencies

0

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

chess-charm

chess-charm

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!

Interactive!

Select with space bar

Select a piece with the arrow keys, and move the arrow keys to the piece's desired location,

Move with the "m" key

After you have a piece selected, then press m!

View this example in ./test.js

Methods

.move(movestring)

Updates the board with the move (given in Modified Standard Algebraic Notation)

.showBoard()

Shows the board as it currently stands.

.setPlayer({name:"foo",color:"black"})

Sets your player.

.setOpponent({name:'bar',color:'white'})

Sets the opponent.

Exit

Push "CTRL + C"

CREDITS

chess-charm was done in Charm by Substack

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial