Skip to content

sadeem-albir/text-based_uno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

commands: "put", "draw", "hand", "tb", "tb_full", "cheat"

for all the commands except "put" and "cheat", you just enter the command.

for "put", you can either type "put" followed by the card name, or type "put", press enter, then be prompted to type the card name.

The card name can have one of three forms: the full card name exactly as it is, an index number from the list of cards you own, or a shortcut name for the card.

For the index: if this is your hand

[green_0, wild, wild_draw4, red_draw2, blue_skip]

and you wanted to put red_draw2, you type

put 4

for the full card name, you type

put red_draw2

and for the shortcut, you type

put rd

Here are some shortcut annotations: normal color card: first letter + card number, e.g yellow_2 -> y2, blue_0 -> b0, etc.

action cards: first letter of color + first letter of action,
e.g yellow_reverse -> yr, red_skip -> rs, blue_draw2 -> bd, etc.

wild cards:
wild -> w, wild_draw2 -> wd

for the "cheat" command, you type "cheat" followed by the name of one of the players to "peak" at their hand. For example, if you're playing with bot1, bot2, and bot3, typing "cheat bot3" will show you bot3's cards.

Finally, in the source code of main.py, you can change the number of players in the game by changing the "num_bots" variable, and if you want to watch the bots play against each other, set "bot_exclusive" to True.

To run the game, type "python main.py" in the directory where the files reside.

About

Text-based Uno card game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages