GithubHelp home page GithubHelp logo

cah_terminal-version's Introduction

About CAH(Cards Against Humanity)

This project is created to simulate a CAH match with 4 players by deafult, the cards where extracted from this project CAH, this starter game will be palyed in a terminal to simulate the experiencie of a CAH game

Flow

There are 4 players, when a round starts the system will shuffle 4 white cards to each player and will decide a black card (this is the main card to play 'against'), depending on the quantity of blank spaces in the main card the players will have to play 1 or 2 cards from their hand. The players will have to take a vote after the system shows the results (this is the white and the black card together) the player with most votes will win a point and the next round will start (the system then will shuffle again until all the players have 4 cards again) and so on...

TODO

  • Create a Vec<Players> not a Vec<&str>
  • Define all the white cards for each player once their names are input
  • Create the shuffle algorithm
  • Always show all the cards for each player on the terminal...?
  • After a card is delivered (white or black) remove it from the main arrays
  • Implement multiple picks when the black card is BlackCard.pick = 2
  • Send the picked cards to a new Vec
  • Show each result for each player
  • Score system

cah_terminal-version's People

Contributors

crisleo94 avatar

Watchers

 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.