hyperchess
v0.1.1
Published
The core engine to a four dimensional chess game
Downloads
8
Readme
Basic Usage
import Hyperchess, { Game } from 'hyperchess'
// new game instance
let game = new Game('Magnus Carlsen', 'Felix')
// get first player (white)
let whitePlayer = game.players[0]
// log the possible moves
whitePlayer.possibleMoves.forEach(m => {
console.log(m.description)
})