Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 785 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 785 Bytes

w i z a r d s

how to deploy: https://medium.com/@leonardykris/how-to-run-a-meteor-js-application-on-heroku-in-10-steps-7aceb12de234

GRAB THE MOST RECENT ROOM db.rooms.find().sort({createdAt: -1})[0]

HOW DO I CALL MONGO FUNCTION FROM THE COMMAND LINE? rather than using the UI meteor shell Meteor.call('rooms.create')

TESTING meteor test --driver-package meteortesting:mocha --port 6669

WAITING FOR PEOPLE TO JOIN:

Start by creating a room: rooms.create To create a player: players.get_or_create To add/remove players to the associated room: rooms.addPlayer/rooms.removePlayer When everyone's joined: rooms.start

PLAYING THE GAME

Initialize a round: rooms.rounds.start then rooms.rounds.deal Bidding phase: update peoples' bids with rooms.rounds.updateBid