added test logic for play in saper

This commit is contained in:
Kostya
2024-01-21 11:16:47 +03:00
parent a59b2ce666
commit 2717141904

View File

@@ -160,6 +160,7 @@ export default {
amountCrystals: 0, amountCrystals: 0,
amountSaveCrystals: 0, amountSaveCrystals: 0,
balance: 0, balance: 0,
gamesCircle: 0,
ErrorClick: '', ErrorClick: '',
gameStart: false, gameStart: false,
offEventPointers: false, offEventPointers: false,
@@ -215,8 +216,19 @@ export default {
} }
}, },
flippedCards: { flippedCards: {
handler(value) { async handler(value) {
if (this.gamesCircle <= this.amountSaveCrystals) {
console.log(value) console.log(value)
this.offEventPointers = false
let LimitClicked = this.amountSaveCrystals
let DepositDiamonds = this.amountSaveDeposit
}
else {
this.gameStart = false
this.offEventPointers = false
this.flippedCards = []
}
}, },
deep: true deep: true
} }