Computer Science Canada

HOw to create a die in turing?

Author:  sweet4evr [ 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
?????????????????????

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

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

Author:  HeavenAgain [ 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

Author:  Nick [ 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)


: