HOw to create a die in turing?
Author |
Message |
sweet4evr
|
Posted: 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
????????????????????? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Martin
![](http://www.compsci.ca/wiki/images/4/46/CanadianStickUp.jpg)
|
|
|
|
![](images/spacer.gif) |
HeavenAgain
![](http://compsci.ca/v3/uploads/user_avatars/139122102045e603120b143.jpg)
|
Posted: Tue Oct 16, 2007 6:24 pm Post subject: Re: HOw to create a die in turing? |
|
|
you are using const wrong
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 |
|
|
|
|
![](images/spacer.gif) |
Nick
![](http://compsci.ca/v3/uploads/user_avatars/19644337547e837b41d67a.png)
|
Posted: 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) |
|
|
|
|
![](images/spacer.gif) |
|
|