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,
amountSaveCrystals: 0,
balance: 0,
gamesCircle: 0,
ErrorClick: '',
gameStart: false,
offEventPointers: false,
@@ -215,8 +216,19 @@ export default {
}
},
flippedCards: {
handler(value) {
async handler(value) {
if (this.gamesCircle <= this.amountSaveCrystals) {
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
}