Merge pull request #4 from redfast00/patch-1

Corrected typo
This commit is contained in:
Oleksii Trekhleb 2018-05-24 08:42:52 +03:00 committed by GitHub
commit 13dab5d4b0
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],