Corrected typo

This commit is contained in:
redfast00 2018-05-23 22:48:17 +02:00 committed by GitHub
parent 3e0ac7486c
commit abf9c9c6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
* @return {number[][]} * @return {number[][]}
*/ */
function getPossibleMoves(chessboard, position) { function getPossibleMoves(chessboard, position) {
// Generate all knight moves (event those that goes beyond the board). // Generate all knight moves (even those that go beyond the board).
const possibleMoves = [ const possibleMoves = [
[position[0] - 1, position[1] - 2], [position[0] - 1, position[1] - 2],
[position[0] - 2, position[1] - 1], [position[0] - 2, position[1] - 1],