We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d51489 + c20280e commit bd5a7cbCopy full SHA for bd5a7cb
src/games/deckfish.ts
@@ -343,7 +343,7 @@ export class DeckfishGame extends GameBase {
343
344
private populateTableau(): number[][] {
345
//Abstract the data structure to only what is needed for movement.
346
- let tableau = new Array(columns).fill(-1).map(() => new Array(rows).fill(-1));
+ const tableau = new Array(columns).fill(-1).map(() => new Array(rows).fill(-1));
347
for (let x = 0; x < columns; x++) {
348
for (let y = 0; y < rows; y++) {
349
//The tableau was initialized to all -1's (gaps).
0 commit comments