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 :)
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?
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.
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
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.
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?
I WON!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
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 :)
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.
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!
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!
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.
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
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.
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...
... 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! :)
The game of Pig is pretty simple. Roll as many times as you want in a turn...but if you get a "1" (a Pig) you lose your turn (and any points earned in that turn). Your goal is to get to 100 points before the computer player (Comp) does. So roll away...then click on Hold when you are ready to let the computer play. See http://en.wikipedia.org/wiki/Pig_%28dice%29
What I love about the game is that it has conflicting forces...you want to roll as long as possible to earn the biggest score...but the longer you roll, the better your chance of scoring a Pig and losing it all!
The graph that starts in the lower left corner shows the occurance of Pig rolls (red line) compared to the expected average of one sixth of a Pig every roll (black line). You can use the graph to try and decide if you should continue rolling if you want to :)
The awesome music is from Newgrounds and is shared with a Creative Commons Noncommercial Share-alike license. It is called "The Beat of Life". It was written by Caleb Cuzner (Nijg) and is available here http://www.newgrounds.com/audio/listen/358570
Credit to dov for the idea to add in a speed adjustment - thanks!
Comments
You need to be logged in to post comments
Add a Comment
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)
SO cool!What's the plot for?
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 :)
5 cats!
Love this! I won 105 to 0
Wow! That's a really lopsided score :)
Nice game! Is it programmed to get a 1 everytime?
Every dice roll is random - but if you play long enough, a one is bound to show up :)
nice!
Cool!:)
this helped me with making my version of this have a computer feature Thanks!!!
One thing though, the cpu got a six and then rolled again. I would think about making the AI a little bit more beleivable
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)This is great!
THIS TOTTALLY ROCKS!!
This reminds me of a math game, "Skunk" exept you need to get most points, not 100.
Paddle2see, wow your projects are amazing! (That's obvious)
Thanks, Thescratch3 - I'm glad you are enjoying them :)
(view all replies)Love it! I mean literally I do love it (both ways!)
i won 124 to 25!!!!! :D love this game
Thanks! I'm glad you are enjoying it :)
LOVE THIS PROJECT!
Thx, jokesrfunny :)
(link to project)
I won!
Hey I need some advice please look at my latest project
AWSOME!
AWESOME
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?
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)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
Thanks a lot switenky! I spent a lot of time on that dice and the user interface. I'm really glad you like them :)
, period.
I won 107 over 43 LOL!
sooooo fun!!
Misleading title - edit? Awesome userinterface, amazing game!
Thanks! What would you suggest for a new title? "Pig dice game"?
(view all replies)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.
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)I WON!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ew, I got a pig! Wow your soo good at this!
you 116, comp 73
i won 104 to 95
awesome game
This should have a multiplayer!
I agree! That's why I made this variant of it (link to project)
(view all replies)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
Thanks for the highly detailed comment! I'm glad you enjoyed my implementation of Pig :)
(view all replies)omg i love it!
why does your name always have a "*" next to it
It's a link. Click on it and find out :)
(view all replies)awesome game! (btw, during the game, i had 84 points while my opponent had 0 points X3)
They must have had a really bad run of luck :)
(view all replies)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!)
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 :)
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)Lol - you must have played it a lot of times to get those odds!
(view all replies)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!
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)BTW, "Keep Pace and End Race" is the policy behind milkkshake's AI-Bold policy in the "Pig Party upgraded" remix.
Paddle2See, I have a question. Are you the same as Paddle2SeeFixIt, or is it a totally different person?
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)Awesome game! I like how you managed to program a fake player.
Paddle2see who else helped you create Scratch?
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
I got 70 in one roll.
What the...? Really?
(view all replies)105-37
I got 83 in one roll!
Crazy
That's amazing!
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.
true
this is sweethow did you everthink of dis did you know uranus means somdink else???? if you know reply me anybody can] 102-61
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.
107-16
Wow...that was a lopsided game!
so addictive so fun but so hard
Win 102-48 :D
So.... intense 0-0
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
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)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...
... 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)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.
No problem - I hope you do!
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)Awesome
I love how the die rolls!
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 :)
Hehe! I beat it big time! 101 to 43. It only had two turns without getting a one. XD
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
In the first game I played, neither of us got a one. xD But I won. (Getting 100 points exactly.) Great game!
A one never showed up? Wow - that's the first I've heard of that happening!