This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A game of chess is played on an 8 column by 8 row board. | |
| In the game of chess, a queen can attack pieces which are on the same row, column, or diagonal. | |
| */ | |
| const generateBoard = (whiteQueen, blackQueen) =>{ | |
| let board = []; | |
| let hzl = []; | |
| for(let i = 0; i < 8; i++){ | |
| for(let j = 0; j < 8; j++){ |
OlderNewer