The .move function can be called two ways, by passing a string in Standard Algebraic Notation (SAN): var chess = new Chess(); chess.move('e4') // -> { color: 'w', from: 'e2', to: 'e4', flags: 'b', piece: 'p', san: 'e4' } chess.move('nf6') // SAN is case ...
Attempts to make a move on the board, returning true if move was legal, otherwise false. Can be called by passing in a string move Standard Algebraic Notation (SAN) like so Chesschess=newChess();chess.Move("e4");chess.Move("nf6");\\returnsfalseSANiscase sensetive!chess.Move("Nf6")...