Inspiration

An attempt to "computerise" a very funny card game.

What it does

It is a computerised version of the card game "Cards Against Humanity". On downloading the main file and running the currently latest version (play_v4.py) on the terminal, it does the following:

  1. Show a brief description of the game (improved)
  2. Ask if you want to save the output
    1. (y | Y): All subsequent outputs will be appended to a file called CAH_OP.txt (If it doesn't exist it will be created automatically).
    2. (n | N): Outputs will only be outputted in the terminal/Command_Line
    3. !(y|n|Y|N): Loop back to point 2
  3. Start Game {nth iteration of game}
  4. Ask for a number between 1 to 10, and print blackCard statement.
    1. If input is a number: continue
    2. Wait for 1 sec
    3. If input == "exit": exit. Thanks message sent.
  5. Wait for 0.5 sec
  6. Directly add random whiteCard phrases into the blackCard statement.
  7. Wait for 2 sec
  8. Output the result
  9. Loop back to point 3

Please read the README.md file for further information.

How we built it

It was built purely using python3 and was made in a linux environment. Used bucket-loads of print statements to create a wannabe UI.

Challenges we ran into

  • Coding the script to be as faithful as possible to the actual game was the most difficult part.
  • Next most difficult part was to create a UI in the terminal while being a complete noob.

Accomplishments that we're proud of

Creation of a functioning game

What we learned

Innovative usage of a programming language to computerise unconventional card games was a great learning experience.

What's next for Build a Clone of any Card or Board Game

The next step would be to embed the game into a website so that players don't have to actually download the files to play them.

Built With

  • python
  • random
  • random-module
  • time
  • time-module
Share this project:

Updates