Code Monkey home page Code Monkey logo

dixit's Introduction

dixit

For innovation day

Install

npm install yarn -g
yarn install

Start

Two servers are needed: one for frontend content distribution:

npm run start:front

And one for backend game server:

npm run start:back

Note

Workflow: 1. Open website, log in with user name. (no check) 2. Only one room, 4 players. Start when there are 4. 3. Assign the first player as the teller. Assign 5 cards/player. 4. Teller choose a card, type a word and confirm. 5. All players see the word. Each one must choose a card and confirm. 6. Show all cards on the table. 7. The other 3 players now choose and confirm. 8. If these 3 are done, then calc the score. 9. Show the result: each card has an owner and list of voters. Each player's score. 10. Next "turn" button.

RoomState: { Round: number Phase: string Players: [{ Id: string Name:string IsTeller:Boolean HandCards:string[] UsingCard:string VoteCard:string HasBeenTellerForTimes:number }] TheWord:string Score:{ ‘PlayerId’:number ... } }

dixit's People

Contributors

enyaogu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.