Pig - A dice game

Install Java to view this project right on your browser!

user_icon Paddle2See* shared it 1 year, 5 months ago
689 views, 3 taggers, 90 people love it, 5 remixes by 4 people, 115 downloads, in 11 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
piisawesome12345 piisawesome12… 3 weeks, 5 days ago

I made a very compact version of Pig for my new OS, PiOS. (You'll need to download into PiOS to play it) (link to project)

macboinc macboinc 3 weeks, 6 days ago

SO cool!What's the plot for?

Paddle2See Paddle2See* 3 weeks, 5 days ago

If shows you a history of when a Pig was rolled so you can see how long the current "lucky streak" has been running (for instance). The straight diagonal line is the expected incidence of Pigs (one every six rolls). So if your game line is running below the line, you are having a lucky game :)

xboxdude xboxdude 2 months, 3 weeks ago

5 cats! Meow! Meow! Meow! Meow! Meow!

Annie44 Annie44 4 months, 1 week ago

Love this! I won 105 to 0

Paddle2See Paddle2See* 4 months, 1 week ago

Wow! That's a really lopsided score :)

Haiming Haiming 4 months, 1 week ago

Nice game! Is it programmed to get a 1 everytime?

Paddle2See Paddle2See* 4 months, 1 week ago

Every dice roll is random - but if you play long enough, a one is bound to show up :)

emilynguyen1113 emilynguyen1113 4 months, 2 weeks ago

nice!

olivecube olivecube 5 months, 4 weeks ago

Cool!:)

sheldor sheldor 6 months, 3 weeks ago

this helped me with making my version of this have a computer feature Thanks!!!

candlelight candlelight 6 months, 3 weeks ago

One thing though, the cpu got a six and then rolled again. I would think about making the AI a little bit more beleivable

Paddle2See Paddle2See* 6 months, 3 weeks ago

Well, you get all the points until you pass on the dice. So you can score more than 6 in a turn.

(view all replies)
candlelight candlelight 6 months, 3 weeks ago

This is great!

Techoguy Techoguy 9 months, 3 weeks ago

THIS TOTTALLY ROCKS!!

lol90 lol90 10 months, 2 weeks ago

This reminds me of a math game, "Skunk" exept you need to get most points, not 100.

Thescratch3 Thescratch3 10 months, 3 weeks ago

Paddle2see, wow your projects are amazing! (That's obvious)

Paddle2See Paddle2See* 10 months, 3 weeks ago

Thanks, Thescratch3 - I'm glad you are enjoying them :)

(view all replies)
Thescratch3 Thescratch3 10 months, 3 weeks ago

Love it! I mean literally I do love it (both ways!)

jokesrfunny jokesrfunny 11 months, 1 week ago

i won 124 to 25!!!!! :D love this game

Paddle2See Paddle2See* 11 months, 1 week ago

Thanks! I'm glad you are enjoying it :)

jokesrfunny jokesrfunny 11 months, 1 week ago

LOVE THIS PROJECT!

Paddle2See Paddle2See* 11 months, 1 week ago

Thx, jokesrfunny :)

Mtroughton2Returns Mtroughton2Re… 11 months, 1 week ago

(link to project)

Mtroughton2Returns Mtroughton2Re… 11 months, 1 week ago

I won!

Mtroughton2Returns Mtroughton2Re… 11 months, 1 week ago

Hey I need some advice please look at my latest project

Mtroughton2Returns Mtroughton2Re… 11 months, 1 week ago

AWSOME!

Hamsterman486 Hamsterman486 11 months, 2 weeks ago

AWESOME

041 041 11 months, 2 weeks ago

WOW, how did you get over 300 comments? I wish i was as good as you. I can't hardly ever get up to 150 comments or even 30 loveits. This is awesome, how did you make this?

Paddle2See Paddle2See* 11 months, 2 weeks ago

It's not all because of the project :) A lot of people ask me questions about Scratch (because I'm on the Scratch Team) by leaving comments on my projects.

(view all replies)
switenky switenky 11 months, 2 weeks ago

Awesome userinterface, great game! And I like how you changed Dice to look like a 3-D while rolling. I think game is epicly great. Great work, Paddle2See

Paddle2See Paddle2See* 11 months, 2 weeks ago

Thanks a lot switenky! I spent a lot of time on that dice and the user interface. I'm really glad you like them :)

switenky switenky 11 months, 2 weeks ago

, period.

gid555 gid555 11 months, 3 weeks ago

I won 107 over 43 LOL!

gid555 gid555 11 months, 3 weeks ago

sooooo fun!!

eventexception eventexception 11 months, 3 weeks ago

Misleading title - edit? Awesome userinterface, amazing game!

Paddle2See Paddle2See* 11 months, 3 weeks ago

Thanks! What would you suggest for a new title? "Pig dice game"?

(view all replies)
wmays wmays 11 months, 3 weeks ago

105 to 87! Very simple Idea, I think I know how it was done, but I wouldn't have made it this way! Awesome! I love it! What's weird is that the red line was way over the black line.

Paddle2See Paddle2See* 11 months, 3 weeks ago

Red over black indicates a higher than expected occurences of pig rolls. But that can work to your advantage, if you are a cautious player. I'm curious when you say you wouldn't have made it "this way". What would you have done differently?

(view all replies)
suzzette suzzette 11 months, 3 weeks ago

I WON!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

OoImagineoO OoImagineoO 11 months, 3 weeks ago

ew, I got a pig! Wow your soo good at this!

AncientRobo AncientRobo 1 year ago

you 116, comp 73

bboy72 bboy72 1 year ago

i won 104 to 95

bboy72 bboy72 1 year ago

awesome game

ruggboy1 ruggboy1 1 year, 1 month ago

This should have a multiplayer!

Paddle2See Paddle2See* 1 year, 1 month ago

I agree! That's why I made this variant of it (link to project)

(view all replies)
Blue_Moon Blue_Moon 1 year, 1 month ago

This is so clever, it's just like a real computer game!Although on each go I wanted to keep rolling and get as many points as possible, but after a few turns, and the score was about 80 to the computer and 2 to me, I kind of realised, and was more cautious, and I won! Yay! :) If I had to make a criticism, it's that this game is very addictive! :D

Paddle2See Paddle2See* 1 year, 1 month ago

Thanks for the highly detailed comment! I'm glad you enjoyed my implementation of Pig :)

(view all replies)
sheepy123 sheepy123 1 year, 1 month ago

omg i love it!

superscratchmen superscratchmen 1 year, 1 month ago

why does your name always have a "*" next to it

Paddle2See Paddle2See* 1 year, 1 month ago

It's a link. Click on it and find out :)

(view all replies)
Angel_Kitty Angel_Kitty 1 year, 2 months ago

awesome game! (btw, during the game, i had 84 points while my opponent had 0 points X3)

Paddle2See Paddle2See* 1 year, 2 months ago

They must have had a really bad run of luck :)

(view all replies)
tneller tneller 1 year, 2 months ago

Pig trivia: You have about a 1% chance of rolling straight to 100 points in a single turn. (I've done this a few times!)

Paddle2See Paddle2See* 1 year, 2 months ago

By the way...if you are using the new Flash viewer and you Shift-click on the Green Flag, it puts it in Turbo mode and really speeds things up. You can play a game very quickly :)

Paddle2See Paddle2See* 1 year, 2 months ago

I was just running Pig Party - AI-Cautious vs AI-Bold (keep pace, end race). Cautious beat Bold 105 to zero. Once Bold gets behind by a lot, the extra risk-taking tends to lead to these lop-sided scores - one reason I prefer a more cautious AI for an opponent.

(view all replies)
Paddle2See Paddle2See* 1 year, 2 months ago

Lol - you must have played it a lot of times to get those odds!

(view all replies)
tneller tneller 1 year, 2 months ago

Congratulations on your excellent implementation of Pig! I'm curious: Which near-optimal AI policies have you tried and found lacking? (I find the "Keep Pace and End Race" policy has great tension. Aggressive catch-up when you're ahead means you can never really rest, and conservative lead extension ratchets up the pressure when you're behind.) Once again, thank you for your excellent implementation of Pig!

Paddle2See Paddle2See* 1 year, 2 months ago

Thanks! I believe I tried "Keep Pace and End Race" (that's my implementation of it in Pig Party - Milkkshake added AI-Daredevil, an even more aggressive stratgy). And it does a great job at beating you...but I figured a more conservative approach with more score changes would be more fun to play against. However, I give you the choice in Pig Party. Thanks for the great paper on the game - I enjoyed it very much!

(view all replies)
tneller tneller 1 year, 2 months ago

BTW, "Keep Pace and End Race" is the policy behind milkkshake's AI-Bold policy in the "Pig Party upgraded" remix.

slapperbob slapperbob 1 year, 2 months ago

Paddle2See, I have a question. Are you the same as Paddle2SeeFixIt, or is it a totally different person?

Paddle2See Paddle2See* 1 year, 2 months ago

Yes, I am the same person. FixIt is an alternate account I use for debugging stuff, fixing other people's projects, and quick side projects :)

(view all replies)
charles219 charles219 1 year, 2 months ago

Awesome game! I like how you managed to program a fake player.

Megalife Megalife 1 year, 3 months ago

Paddle2see who else helped you create Scratch?

Paddle2See Paddle2See* 1 year, 3 months ago

I can't take any credit for creating Scratch :) I came on board after it was created. Here are the people responsible http://info.scratch.mit.edu/Scratch_Credits

Megalife Megalife 1 year, 3 months ago

I got 70 in one roll.

Pancakelover27 Pancakelover27 1 year, 2 months ago

What the...? Really?

(view all replies)
Megalife Megalife 1 year, 3 months ago

105-37

luigi128 luigi128 1 year, 3 months ago

I got 83 in one roll!

Pancakelover27 Pancakelover27 1 year, 2 months ago

Crazy

Paddle2See Paddle2See* 1 year, 3 months ago

That's amazing!

luigi128 luigi128 1 year, 3 months ago

I got 52 in one round to win 103-98. I did really bad at the beginning because I didn't know what to do.

TheCatAndTheBanana TheCatAndTheB… 1 year, 3 months ago

true

poptropicafans101 poptropicafan… 1 year, 3 months ago

this is sweethow did you everthink of dis did you know uranus means somdink else???? if you know reply me anybody can] 102-61

Paddle2See Paddle2See* 1 year, 3 months ago

I have the game "Pass the Pigs" at home. And, yes, Uranus is a planet but the name sounds like part of the body http://dictionary.reference.com/browse/anus so a lot of people make fun of it.

humok173 humok173 1 year, 3 months ago

107-16

Paddle2See Paddle2See* 1 year, 3 months ago

Wow...that was a lopsided game!

Kit_Kat1000 Kit_Kat1000 1 year, 3 months ago

so addictive so fun but so hard

ZaRiTo ZaRiTo 1 year, 3 months ago

Win 102-48 :D

ZaRiTo ZaRiTo 1 year, 3 months ago

So.... intense 0-0

sparks sparks° 1 year, 3 months ago

I agree. I've just spent an hour or so looking over probability again, ran a few virtual dice throwing projects and eventually gave up :P One of the things I'm studying in psychology at the moment is how easily humans create completely incorrect assumptions about probability, chance and other such things :P

Paddle2See Paddle2See* 1 year, 3 months ago

I'm not an expert in probability - I've fooled myself a few times with things I thought I understood. But I'm pretty sure I'm right about this :) It makes sense intuitively (always risky, I know) and when I play this game it works out too. Maybe I should make a project and prove it experimentally.

(view all replies)
sparks sparks° 1 year, 3 months ago

Brilliant! I love the rolling dice animation, the sound effects are great, the graph is interesting... maybe it should plot the CPU's progress too? Very fun, does it roll till it scores over 20, then rolls a few more times before cashing in the points or is the algorithm of the cpu's behaviour based on how many points there are between you? One thing, in the notes you say "the longer you roll, the better chance of scoring a pig" which isn't strictly true as the dice has no memory...

sparks sparks° 1 year, 3 months ago

... of how many times you've rolled. The odds of scoring a pig remain the same throughout the game, though the punishment of receiving one does increase! :)

(view all replies)
mrslippy913 mrslippy913 1 year, 4 months ago

Cool! I know a similar game to this. It's called Pass The Pigs. Maybe you can do ag ame about it! (Or me!) Just a suggestion.

Paddle2See Paddle2See* 1 year, 4 months ago

No problem - I hope you do!

Paddle2See Paddle2See* 1 year, 4 months ago

Thanks! Yeah, I have Pass the Pigs too. I just thought trying to show the special pig dice would be too hard to do :)

(view all replies)
yodude925 yodude925 1 year, 4 months ago

Awesome

shaunt shaunt 1 year, 4 months ago

I love how the die rolls!

Paddle2See Paddle2See* 1 year, 4 months ago

Thanks! I spent a lot of time trying to get that to look right - it's nice to know that you think it came out okay :)

MathWizz MathWizz 1 year, 4 months ago

Hehe! I beat it big time! 101 to 43. It only had two turns without getting a one. XD

zaper7 zaper7 1 year, 4 months ago

Lolz. I got four points on first and held it. the computer got a ton of sixes fives and fours and got like 40 points, then got a one. failz

MetharQuxid MetharQuxid 1 year, 4 months ago

In the first game I played, neither of us got a one. xD But I won. (Getting 100 points exactly.) Great game!

Paddle2See Paddle2See* 1 year, 4 months ago

A one never showed up? Wow - that's the first I've heard of that happening!

Please Wait...