The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Skinny's Casino - Solution!
Goto page Previous  1, 2
 
Reply to topic    The Grey Labyrinth Forum Index -> Grey Labyrinth Puzzles
View previous topic :: View next topic  
Author Message
ComputerHacker
Guest



PostPosted: Wed Nov 05, 2003 8:01 am    Post subject: 41 Reply with quote

Correction:
that's 2280/8000 = 28.5%
Back to top
Austinap
Guest



PostPosted: Sat Nov 08, 2003 8:17 pm    Post subject: 42 Reply with quote

Playing the game as it is, you have about a 29% chance of winning any given hand (figured this out by brute-force looping with javascript).... but if you change the game so that you win ties (i.e. he rolls a 10 and a 15, you roll a 15... you get paid) then you have nearly a 40% chance of winning now, a significant differant, but not enough.

heres my code:

win = 0;
loss = 0;
// total = win + loss
for (i = 1; i <= 20; i++){ // first dice
for(j = 0; j <= 20; j++) { // second dice
for(y = 1; y <= 20; y++){ // your dice
if((y >= i) && (y <= j)){
win += 1;
}else if((y >= j) && (y <= i)){
win += 1;
}else{
loss += 1;
}
}
}
}
odds = 100*(win/(win+loss));
alert(win + " wins");
alert(loss + " losses");
alert(odds + "% odds of winning any given hand");
Back to top
Austinap
Guest



PostPosted: Sat Nov 08, 2003 8:21 pm    Post subject: 43 Reply with quote

NOTE: in the above post change the <= and >= to just < or > to test the game "as is".
Back to top
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Grey Labyrinth Puzzles All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3