Skip to content

jenkliu/wizard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Remote-friendly version of the trick-taking card game Wizard: https://en.wikipedia.org/wiki/Wizard_(card_game)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published