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

Username:   Password: 
 RegisterRegister   
 HOw to create a die in turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sweet4evr




PostPosted: Tue Oct 16, 2007 4:27 pm   Post subject: HOw to create a die in turing?

i need immediate help in making a die in turing that has 5 dots on it, the problem i am having is that i don;t know how to put the formula in the input window.
i put const:3.14 and then i am lost...like what do i put
here i am so far:
var sidelenght:real
var lenght:real
put" yadayada yada"
get sidelnght

const:3.14
?????????????????????
Sponsor
Sponsor
Sponsor
sponsor
Martin




PostPosted: Tue Oct 16, 2007 4:47 pm   Post subject: RE:HOw to create a die in turing?

http://compsci.ca/v3/search.php
HeavenAgain




PostPosted: Tue Oct 16, 2007 6:24 pm   Post subject: Re: HOw to create a die in turing?

Snooty you are using const wrong Doh!
and what you mean by, "5 dots on it", and "how to put formula in the input window"
if the error is with const:3.14, my best guess would be, try Math.PI <<< it is already a constant
Nick




PostPosted: Tue Oct 16, 2007 6:27 pm   Post subject: RE:HOw to create a die in turing?

...what are u trying to do? create a die that has dots on it depending on the number rolled?
if so simply use drawoval also i dont know how much u know turing but to randomize the dice roll use randint(var_name,1,6)
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  [ 4 Posts ]
Jump to:   


Style:  
Search: