remove unused match method parameter
This commit is contained in:
parent
74af4caea7
commit
88dc377562
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ class Pyramid {
|
||||||
class MoveString {
|
class MoveString {
|
||||||
static gameWon() {return "You have won.";}
|
static gameWon() {return "You have won.";}
|
||||||
static gameLost() {return "There are no more valid moves.";}
|
static gameLost() {return "There are no more valid moves.";}
|
||||||
static match(cardA, cardB) {return "Move " + cardA + " onto the stock.";}
|
static match(cardA) {return "Move " + cardA + " onto the stock.";}
|
||||||
static flipStock() {return "Draw a new stock card.";}
|
static flipStock() {return "Draw a new stock card.";}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ function solve(pyramidArray, stockArray, stockIndex = 0, moveArray = []) {
|
||||||
stockIndex++;
|
stockIndex++;
|
||||||
|
|
||||||
newMoveArray = JSON.parse(JSON.stringify(moveArray));
|
newMoveArray = JSON.parse(JSON.stringify(moveArray));
|
||||||
newMoveArray.push(MoveString.match(cardA.toString, topStock.toString));
|
newMoveArray.push(MoveString.match(cardA.toString));
|
||||||
|
|
||||||
let newPyramidArray = JSON.parse(JSON.stringify(pyramidArray));
|
let newPyramidArray = JSON.parse(JSON.stringify(pyramidArray));
|
||||||
newPyramidArray[freeCardsIndices[i]] = 0;
|
newPyramidArray[freeCardsIndices[i]] = 0;
|
||||||
|
|
Loading…
Reference in a new issue