The SilverCreator Plaza
Home Help Search Login RegisterCurrent time:  

Pages: 1 2 
Send Topic Print
Coin Flipper (Read 839 times)
BigPixel Chris
God Member
*****
Offline


Lose Ctrl. Gain Cmd. Get
a Mac.

Posts: 1111
Gender: male
Coin Flipper
Nov 27th, 2006 at 1:58pm
 
Here's another simple game, a 'Virtual Coin Flipper' that randomly chooses heads or tails.

For Mac OS X and Classic

http://bigpixel.macintoshdevelopers.net/software/info/vcf.html
Back to top
 
WWW  
IP Logged
 
Hendo
God Member
*****
Offline


OH HAI! Wut r goin on
in this forum?

Posts: 1275
Ontario, Canada
Gender: male
Re: Coin Flipper
Reply #1 - Dec 10th, 2006 at 3:55pm
 
i can write this program in two lines of code in Applescript Tongue
Code:
set pick to some item of {"Heads", "Tails"} as string
display dialog pick
Back to top
 

...
WWW  
IP Logged
 
EqwanoX
God Member
*****
Offline



Posts: 1782
Gender: male
Re: Coin Flipper
Reply #2 - Dec 10th, 2006 at 5:23pm
 
damn 2 lines is good, i can do it in 6 but with less words

LET x = RANDOM(2)
IF x = 1 THEN
PRINT "tails"
ELSE
PRINT "heads"
END IF

lol, whys this even in released games? it should be open sourse in code samples  Cheesy
Back to top
« Last Edit: Dec 10th, 2006 at 5:25pm by EqwanoX »  

...
macintosh 8500/150 OS8.0
 
IP Logged
 
Samus
God Member
*****
Offline


~ Charlie Brown ~

Posts: 700
Gender: male
Re: Coin Flipper
Reply #3 - Dec 10th, 2006 at 9:18pm
 
I can do it with no words or code?!, all i need is ONE coin, oooooh, suck on that, how u like them apples?...!
Back to top
 
WWW sladeinfull  
IP Logged
 
BigPixel Chris
God Member
*****
Offline


Lose Ctrl. Gain Cmd. Get
a Mac.

Posts: 1111
Gender: male
Re: Coin Flipper
Reply #4 - Dec 13th, 2006 at 2:41pm
 
Then it wouldn't be virtual. Smiley
Back to top
 
WWW  
IP Logged
 
Samus
God Member
*****
Offline


~ Charlie Brown ~

Posts: 700
Gender: male
Re: Coin Flipper
Reply #5 - Dec 13th, 2006 at 7:39pm
 
so... it just says a coin flipper...  Grin

I can make one in one line of code with SC, (remember to bet on heads though) Grin

Code:
PRINT "Heads" 

Back to top
 
WWW sladeinfull  
IP Logged
 
Al Staffieri, Jr.
Ex Member
***


I'm the best and you're
not

Gender: male
Re: Coin Flipper
Reply #6 - Dec 14th, 2006 at 10:29am
 
I can do it in 3 lines in GameMaker

x = RANDOM 2
IF x = 1 THEN PRINT Heads
IF x = 2 THEN PRINT Tails
Back to top
 
Al Staffieri Jr.
AlStaff@aol.com
http://alstaffieri.com
 
IP Logged
 
Hendo
God Member
*****
Offline


OH HAI! Wut r goin on
in this forum?

Posts: 1275
Ontario, Canada
Gender: male
Re: Coin Flipper
Reply #7 - Jan 4th, 2007 at 8:20am
 
baha i can do it in one line of Applescript
Code:
display dialog (some item of {"Heads", "Tails"}) 

Back to top
 

...
WWW  
IP Logged
 
Telstar5
God Member
*****
Offline


only found your laser
beams

Posts: 2025
Gender: male
Re: Coin Flipper
Reply #8 - Jan 9th, 2007 at 12:42pm
 
I can do it without a coin OR ANY LINES OF CODE.







Heads.
Back to top
 

...
we're all sent here in different packages
to get revamped
once more
to get sent back in nicer packages
than the package before
and when we've learned
all that there is to learn
our postage won't have to be
addressed; return...
WWW telstarcontrol  
IP Logged
 
Samus
God Member
*****
Offline


~ Charlie Brown ~

Posts: 700
Gender: male
Re: Coin Flipper
Reply #9 - Jan 9th, 2007 at 1:17pm
 
it was tails actually, I saw you cheat man  Kiss
Back to top
 
WWW sladeinfull  
IP Logged
 
Telstar5
God Member
*****
Offline


only found your laser
beams

Posts: 2025
Gender: male
Re: Coin Flipper
Reply #10 - Jan 9th, 2007 at 1:43pm
 
Samus wrote on Jan 9th, 2007 at 1:17pm:
Kiss


I never knew you liked men. Shocked
Back to top
 

...
we're all sent here in different packages
to get revamped
once more
to get sent back in nicer packages
than the package before
and when we've learned
all that there is to learn
our postage won't have to be
addressed; return...
WWW telstarcontrol  
IP Logged
 
Stu
God Member
*****
Offline


Furious Stoic

Posts: 759
USA
Gender: male
Re: Coin Flipper
Reply #11 - Jan 9th, 2007 at 2:43pm
 
ROFL

I wonder what smiley he meant to use.
Back to top
 
coded+stu  
IP Logged
 
Hendo
God Member
*****
Offline


OH HAI! Wut r goin on
in this forum?

Posts: 1275
Ontario, Canada
Gender: male
Re: Coin Flipper
Reply #12 - Jan 9th, 2007 at 4:23pm
 
Samus wrote on Jan 9th, 2007 at 1:17pm:
 Kiss


thats just damn embarassing
Back to top
 

...
WWW  
IP Logged
 
EqwanoX
God Member
*****
Offline



Posts: 1782
Gender: male
Re: Coin Flipper
Reply #13 - Jan 9th, 2007 at 4:58pm
 
Hendo wrote on Jan 9th, 2007 at 4:23pm:
thats just damn embarassing

LOL, why is that smiley even AVAILABLE
Back to top
 

...
macintosh 8500/150 OS8.0
 
IP Logged
 
Telstar5
God Member
*****
Offline


only found your laser
beams

Posts: 2025
Gender: male
Re: Coin Flipper
Reply #14 - Jan 10th, 2007 at 11:39am
 
EqwanoX wrote on Jan 9th, 2007 at 4:58pm:
LOL, why is that smiley even AVAILABLE


For people like Samus. I mean, without those smilies, he could get in one little fight and his mom got scared and said "you're moving with your auntie and uncle in Bel-Air".
Back to top
 

...
we're all sent here in different packages
to get revamped
once more
to get sent back in nicer packages
than the package before
and when we've learned
all that there is to learn
our postage won't have to be
addressed; return...
WWW telstarcontrol  
IP Logged
 
Pages: 1 2 
Send Topic Print