Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Craps help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Omega42




PostPosted: Thu Apr 29, 2004 10:15 am   Post subject: Craps help

I'm trying to get a game of craps working but I can't get the two different dice to roll at the same time...if anyone can help it would really be apreceiated...considering its due tomorrow I would REALLY like some help if anyone can help
Thanks
~O(\/)ega~
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Thu Apr 29, 2004 11:21 am   Post subject: (No subject)

Wow...talk about priorotizing!

code:

var dice1 : int := Rand.Int (1, 6)
var dice2 : int := Rand.Int (1, 6)


~or~

code:

var dice1 : int
var dice2 : int
randint (dice1, 1, 6)
randint (dice2, 1, 6)


Same thing.
Paul




PostPosted: Thu Apr 29, 2004 4:01 pm   Post subject: (No subject)

Hmm... maybe he's talking about the animation, since Idk if he'd have problem with something as simple as above. If its animation, then just have 6 faces of dice as pictures in an array, then animate random faces on both dice for a while (you know, draw one then the other, with a bit of delay), and stop, whatever subscript it stops at, is the dice roll.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: