Giter VIP home page Giter VIP logo

codenames's Introduction

Codenames

by Christopher Linscott

Link to website: https://linschris-codenames.glitch.me/

What is Codenames?

It's a card game in which there are:

  • 4 people form 2 teams:
    • In each of these teams, there are two roles:
      • Spymasters: These people can see the 'teams' of the cards (which cards are red, blue, neutral, or death)
      • Guessers: These people, from clues of the spymaster, are meant to guess only the cards of their team. The goal for either team is to pick all the cards of their respective team before the other team.
  • So how a game will normally go is:
    • A spymaster gives a clue to hint the guessers toward their own team cards (Ex: 'Dog 3' to hint at ball, fetch, husky)
    • Spymasters are denoted by a glasses emoji
    • The guessers will be given n + 1 tries (n being the number of cards the spymasters says his clue is meant to reveal)
    • Guessers are denoted by a question mark
    • If the guessers guess: *Their own team's card: The turn continues and they attempt to reveal more of their team's cards *The other team's card: The turn stops, the enemy team earns a point(losing a card they need to reveal) and becomes enemy's turn *A neutral card: The turn stops and switches to the enemy *A death card: Automatic lose: The team that picks this card loses the game automatically.

If you want to look deeper into source code:

  • Specific files to look into:
    • app.js -> represents server-side code, takes in 'emit's (message) from the client and broadcasts an event(such as flip a card) to rest of users
    • main.js -> represents client-side code, takes in 'emit's'(message) from server to update their own game
    • script.js -> holds the Game class, which stores all the users, teams, cards, and is changed from updates from main.js

Current bugs/ideas to think about:

  • Make website more responsive(buttons don't show up on all screens)
  • Fix custom words (A bit buggy at the moment).

codenames's People

Contributors

linschris avatar dependabot[bot] avatar zeroclutch avatar

Stargazers

Utsav Pandey avatar  avatar

Watchers

James Cloos avatar  avatar  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.