JS implementation of The Mind with networking!
To test locally, change the server
definition in App.js
.
Run npm run start
to start the front end and npm run serve
to start the back end.
- show which players are remaining and/or how many cards they have left
- show all of the cards that have been played + highlight the last card played
- make it playable with more than 1 card per person
- better feedback for when one player is about to play (make their name shake? make it big? idk)
- when you drop a card in the middle, have it stay in the same spot
- unit tests? for the turns on the game?
- rewrite turn funcs to treat G as immutable
const G = {
players: {
1: {
cards: [67]
},
2: {
cards: [45, 99]
}
},
aboutToPlay: {
1: null
},
cardsPlayed: [ 20 ],
gameOver: "you win!",
}