SyntaxSquad/DADProject#14 added surrender button
This commit is contained in:
1 parent
83adbcf2f1
commit
0bf96fc948
3 files changed
+57
-30
No files matched your search
@@ -268,9 +268,12 @@ export const useBiscaStore = defineStore('bisca', () => {
|
||||
|
||||
const quitGame = () => {
|
||||
if (!isGameRunning.value) return
|
||||
|
||||
opponentScore.value = 120
|
||||
playerScore.value = 0
|
||||
winner.value = 'opponent'
|
||||
|
||||
// Parar o jogo imediatamente
|
||||
isGameRunning.value = false
|
||||
isGameOver.value = true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user