Skip to content
← Back to Community
Uno!
Profile icon
Muffinlavania

After a lot of work, some messed up graphics, and an infinite deck, I have made...

Uno in python!

For everyone who does not know how to play, i just added some rules! They will display quite quickly, but dont worry, it will wait for you to hit enter to clear. This took a lot of time to make, so hopefully you enjoy!

Also to anyone who reads this, you can say the position of the card instead of th card name!

Like in Red 6, Red 7, Blue 8 : Red 6 would be 1, Red 7 would be two and so on


For everyone who wants to, you can fork this project, copy the code or whatever, but please dont say that you made it!


EDIT:

The Uno Stonks are out the roof, but continue to give positive feedback, i am still fixing things in the game
Everyone is absolutely loving this, so if you have any suggestions, even if its something small, comment it down below!

Fixed Things:

Lowercase letters are now working! You can say red 6 instead of Red 6!

The Game is now infinite! When losing or winning, why not play again?

All of you wanted it, so now

The Wild Card is working!


Not really a bug, but some of you are like this:
image
So it no longer gives an error if you smash your keyboard while picking a card


Win screen now works!
The win screen used to just not show up, but now it should for everyone

This post has been locked
Voters
Profile icon
AndersonLee6
Profile icon
EllisBrown71
Profile icon
Miles10Johnson
Profile icon
LukeMeszynski1
Profile icon
imah4ck3r
Profile icon
lightningrock
Profile icon
flameSpectrum
Profile icon
davaskye
Profile icon
parangwave
Profile icon
dudeactualdev
Comments
hotnewtop
Profile icon
gibbsfreenergy

The Muffin Boi is alive once again!

Profile icon
PattanAhmed

@JosephSanthosh Oh...
You made a Typo.

It was The Muffin Boi
Ask @Muffinlavania for evidence.
LoL!


01

Profile icon
gibbsfreenergy

Why don't you ask him? :) @PattanAhmed

Profile icon
PattanAhmed

@JosephSanthosh Ok


Hello @Muffinlavania...
Should we call you The Muffin Man or The Muffin Boi?

Profile icon
Muffinlavania

@PattanAhmed which do you prefer? I will change my name accordingly.

Profile icon
PattanAhmed

@Muffinlavania Ah...
I prefer The Muffin Boi only.

So, just keep it.

Profile icon
PattanAhmed

@Muffinlavania Ask this guy too.?

Profile icon
gibbsfreenergy

Ok I will change it accordingly. @PattanAhmed

Profile icon
PattanAhmed
Profile icon
AustinZhang1
Profile icon
AustinZhang1

Wild card doesn't work

Profile icon
Muffinlavania

@AustinZhang1 Wild Card is VERY buggy, i will try to fix it soon, very sorry

Profile icon
[deleted]

@Muffinlavania Umm the error for me is that when i say the name of the card it just bugs out!

Profile icon
Muffinlavania

@AustinZhang1 now the wild card is working!

Profile icon
HahaYes

@AustinZhang1 ye I'll try to help muffin on that

Profile icon
Muffinlavania

@HahaYes Can you help me pls pls meme

Profile icon
HahaYes

@Muffinlavania yes not now tho

Profile icon
firefish

@HahaYes so hahayes, you can? HAHANO YOU WILL NOT BE ALLOWED TO lol

Profile icon
Muffinlavania

@AustinZhang1 Wild Card should now work, and @FluidCycling you too!

Profile icon
[deleted]
Profile icon
studentAlfredAl

wild 😉🤪 @Muffinlavania

Profile icon
Name12

I love it!!

Profile icon
userSM

uno this game is really fun :)

Profile icon
AustinZhang1

Found an error:

image
It says Wild Card(Any)... hmmmm

Profile icon
Muffinlavania

@AustinZhang1 yea ill try to fix that..

Profile icon
SixBeeps

i like the reverse card

Profile icon
RichaL1

Is it possible to edit the code so that you can stack +(2, 4) cards on top of each other? (Ex. Player puts a +2, Computer stacks a +4, and then player stacks another +4, resulting in the Computer picking 10 cards)?

Profile icon
Muffinlavania

@RichaL1 I have actually never seen uno like that, but i have heard of it. I dont think i will add it, but maybe i will just make another version of this and include that in there

Profile icon
RichaL1

@Muffinlavania Oh, that's fine. That's just the way I'm used to playing UNO. I've been playing with that rule for as long as I remember.

Profile icon
RichaL1

@Muffinlavania Oh, that's fine. That's just the way I'm used to playing UNO. I've been playing with that rule for as long as I remember. Thank you for responding!

Profile icon
3941driB

Bug:

I was about to win a game against the AI when the stupid game crashed because I accidentally went out of range, please fix this immediately with a try: statement

Profile icon
Muffinlavania

@3941driB lollllll that sucks, just try not to say the wrong thing, doing try and except and stuff like that would be very annoying, because the functions are the ones that are really doing the stuff

Profile icon
3941driB

@Muffinlavania you have 888 cycles 🤣

Profile icon
3941driB

@Muffinlavania: um to elaborate you said you fixed going out of range but you must have done if i <= len(cards) instead of i < len(cards)

Profile icon
VEXNotebook

This project is so cool!

Profile icon
Muffinlavania
Profile icon
[deleted]

Really fun

Profile icon
Muffinlavania

@RyanChoe1 Thanks!

Profile icon
zplusfour

Cool

Profile icon
RohilPatel

Dos

Profile icon
NoNameByProgram

@RohilPatel That's what I said! D:

Profile icon
RohilPatel

is it really? @NoNameByProgram

Profile icon
NoNameByProgram

@RohilPatel lol yea

Profile icon
HongyiZhou

@RohilPatel the perfect squeal doesn't exis-

Profile icon
RohilPatel

Squeeeeeeeeeeaaaak @HongyiZhou

U mean squeak lamo

Profile icon
Muffinlavania

@RohilPatel Ahem
No squeaks allowed! You must now kneel before Mr.Squeak while he give you your sentence

*** Squeak squeak squeak squeak, squeaksqueak squeaksqueak squeak, squeak squeak squeak.Squeak squeak squeakkkkkkkkkk squeak, squeak squeak*** squeak squeaksqueak squeak!

Profile icon
XanderOldham

How do I play wild card? Are they different? They don’t work for me.

Profile icon
Muffinlavania

@XanderOldham Wild Cards should be able to play on any card, but for come reason everyone says that they dont work, so can you send me a screenshot of what is happening

Profile icon
XanderOldham

@Muffinlavania sorry for the inconvenience, I think I posted this comment at a point where they didn’t work, or I may have not updated that tab and the game was still in a former version. Either way, it’s working now! Thanks for the concern, it’s great to know the developer cares!

Profile icon
Muffinlavania

@XanderOldham thanks! ANd the wild cards do work? Thanks for letting me know, so far everyone is absolutely slamming me about the Wild Cards

Profile icon
python88

@Muffinlavania i think it's good!

Profile icon
Muffinlavania

@python88 thanks!

Profile icon
herbertju

This is amazing! Great work.

Profile icon
NoNameByProgram

dos

Profile icon
firefish

@NoNameByProgram

tres

quatro

Profile icon
firefish

@NoNameByProgram

CINCO

Profile icon
sbtvdgamer
Profile icon
Muffinlavania

@sbtvdgamer @firefish @NoNameByProgram

*** SIETE ***

Profile icon
firefish

@Muffinlavania

i didn't learn that much spanish
Profile icon
Muffinlavania

@firefish Yo comprendo un poco español

Profile icon
firefish

@Muffinlavania I gues that means I comprehend/understand an speak spanish, like I'm just taking similarities between english here

Profile icon
Muffinlavania

@firefish it means i understand a bit of spanish

Profile icon
firefish

@Muffinlavania I know less than you then

Profile icon
Muffinlavania

@firefish (I mean im literally in spanish right now)

Profile icon
firefish

@Muffinlavania

(I mean im literally in spanish right now)

I hope you mean you're in spain and not embedded inside a language

Profile icon
Muffinlavania

@firefish Spanish Class, im in school

Profile icon
firefish

@Muffinlavania How on earth did they let you, it can't be allowed

Profile icon
leo-ironkey

image

I won in 10 seconds lmao

Profile icon
Muffinlavania

@FishingFights whoooooooops i forgot to change it back

Profile icon
Muffinlavania

@FishingFights there it should work

Profile icon
leo-ironkey

yeah it does thanks a lot
@Muffinlavania

Profile icon
code913

when you throw a reversal card on time

Profile icon
python88

i love this game!

Profile icon
python88

amazing game!

Profile icon
SheldonC

Hey is this code on GitHub? Pls share the link!!

Profile icon
Muffinlavania

@SheldonC no it isnt actually... never thought of putting it on there, i just made this on my free time

Profile icon
SheldonC

@Muffinlavania
Do create a GitHub repo for this....I can't wait to star this!!

Profile icon
Muffinlavania

@SheldonC i will try to create one, thanks for the advice!

Profile icon
YuvanVighnesh

I cant even place a card lol, but i like this game

Profile icon
Muffinlavania

@YuvanVighnesh what do you mean? You mean its bugged or you are really unlucky

Profile icon
YuvanVighnesh

Like when I place a card that I already have, it says that I cant place it, I can only play"n"@Muffinlavania

Profile icon
Muffinlavania

@YuvanVighnesh umm well you cannot place a card if it is not the same color or number as the card in play, maybe that is it?

Profile icon
YuvanVighnesh

No, I placed the exact same card that I [email protected]

Profile icon
[deleted]

image

thats not how math works

Profile icon
spidunnoold

I'm stealing that print function

it's too powerful

Profile icon
Muffinlavania

@jesseturdface lol you mean the slow print thing? Go right ahead, also if you dont understand it: https://repl.it/talk/learn/The-Slow-Print/44741

Profile icon
spidunnoold

@Muffinlavania I semi understand how it works, but I do know how to use it

Profile icon
Muffinlavania

@jesseturdface ok cool! quick rundown of it
sys.stdout.write writes the letter that you are on, without indenting
sys.stdout.flush() makes it so that the whole things works(i dont know it does it)
time.sleep(whatever) waits that tiny little delay between each character
And it is looped with a for letter in phrase at the top!

Profile icon
spidunnoold

@Muffinlavania Nice, I just think it looks dope

Profile icon
bgrubert

This was surprisingly fun

Profile icon
Muffinlavania

@bgrubert thanks!

Profile icon
aaritlol

hi!.. so I tried your game, and its good and all but its not letting me place the green +2 card soooo.... yeah just try to fix that then you will be. chilling (I won't give you advice because i suck at python coding) Thanks!
sincerely,
a kid that's bad at coding

Profile icon
Muffinlavania

@aaritsri lol and i think if you are doing the +2 cards, the '+' sign gets all weird and such, i would just use the number for the card, like if this was your deck
Red 6, Green +2 Card, Blue 7
You would say 1 for Red 6, 2 for Green +2 Card and so on

Profile icon
RahulChoubey1

I love the reverse card joke…

Profile icon
RahulChoubey1

I placed a blue 5, and then the computer placed a blue 5 twice!

Profile icon
Muffinlavania

@RahulChoubey1 you mean the computer has two turns at once?

Profile icon
RahulChoubey1

@Muffinlavania No, they dropped one and later another(Uno should only have two of that card)

Profile icon
Muffinlavania

@RahulChoubey1 Yea.. i have like 4 wild cards in the deck too... i dont know the deck is huge

Profile icon
RahulChoubey1

It's slow in design. Sooooo slow…

Profile icon
RahulChoubey1

Why doesn't "nope" work?

Profile icon
Muffinlavania

@RahulChoubey1 because thats not "no"... its like me adding "sure" for yes, but ill add it anyway

Profile icon
RahulChoubey1

The wild card works now! :)

Profile icon
Muffinlavania

@RahulChoubey1 truer words have never been spoken