Added game start for single player, 3 and 9 card game types and protected the pages for only logged in players

This commit is contained in:
2025-12-29 11:15:20 +00:00
committed by FernandoJVideira
parent cfda949ea6
commit e68f1357cc
6 changed files with 285 additions and 114 deletions
+6 -2
View File
@@ -95,11 +95,11 @@ const props = defineProps({
},
playerScore: {
type: Number,
default: 45,
default: 0,
},
opponentScore: {
type: Number,
default: 23,
default: 0,
},
currentTurn: {
type: String,
@@ -113,4 +113,8 @@ const emit = defineEmits(['card-clicked'])
const handleCardClick = (payload) => {
emit('card-clicked', payload)
}
const handlePlayCard = (card) => {
store.playerPlayCard(card)
}
</script>