SyntaxSquad/DADProject#14 added surrender button
This commit is contained in:
@@ -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