#18 Implementing the game 2
- Aaron
- Dec 11, 2020
- 1 min read
Updated: Dec 16, 2020
An overview of what I tried to implement each day
(8 Dec - 13 Dec)
8 Dec
Game implementation basics
start game when a user clicks “start game” in the game room
Shuffle cards
Distribute cards
9 Dec
Game logic
Distribute cards
anyone can play any card
turns
Play cards
play any card
10 Dec
Coachgesprek
Game logic
Show & tell
11 Dec
Guest lecture whojo talk
Game logic
keep past turn
require the same amount of cards
only playable cards
12 Dec
Game logic
only playable cards
prevent adding multiple cards with different values (except 2)
added firstTurn bug fix
some code optimizing
turns
Vue.JS uses proxies
Proxies
13 Dec
Game logic
Rounds
some playedCards server validation
win Condition
new game (finishedUsers, placements, …)
checkForNewGame
fix bug when removing a card: by passing the index
losers giving cards to winners
winners giving cards to losers
start new round (president should go first)
Comments