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:
- Show a brief description of the game (improved)
- Ask if you want to save the output
- (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).
- (n | N): Outputs will only be outputted in the terminal/Command_Line
- !(y|n|Y|N): Loop back to point 2
- (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).
- Start Game {nth iteration of game}
- Ask for a number between 1 to 10, and print blackCard statement.
- If input is a number: continue
- Wait for 1 sec
- If input == "exit": exit. Thanks message sent.
- Wait for 0.5 sec
- Directly add random whiteCard phrases into the blackCard statement.
- Wait for 2 sec
- Output the result
- 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
Log in or sign up for Devpost to join the conversation.