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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user