
-----------------------------------
yingmu
Sun Mar 06, 2005 9:42 pm

how to generate different odds of winning?
-----------------------------------
i doing a horse racing game and i don't know how to generate different winning odds for each horse, pleaz help! and also how to make it so that when a picture move only one picture will appear without a whole bunch overlapping?

-----------------------------------
guttface
Sun Mar 06, 2005 9:46 pm


-----------------------------------
you could cls the whole screen and redraw it with the picture in the new position. also, you might be able to xor it but im not exactly sure how that works. as for the odds, you could use randint:
 randint(var_name, lower_bound,upper_bound) to return a random number to be used for odds, and then maybe tie that number into the speed of the horse

-----------------------------------
guttface
Sun Mar 06, 2005 9:56 pm


-----------------------------------
i forgot- u'll need to use setscreen("offscreenonly") 
View.Update  tp prevent flickering when you redraw the screen

-----------------------------------
person
Mon Mar 07, 2005 3:31 pm


-----------------------------------
didnt someone ask the same question yesterday?

-----------------------------------
[Gandalf]
Mon Mar 07, 2005 5:10 pm


-----------------------------------
Ya, probably same assignment too!

http://www.compsci.ca/v2/viewtopic.php?t=8011

-----------------------------------
Flikerator
Mon Mar 07, 2005 8:18 pm


-----------------------------------
"]Ya, probably same assignment too!

http://www.compsci.ca/v2/viewtopic.php?t=8011

Lolz thats funny. Why don't people just ask there teachers? *Rolls eyes*

-----------------------------------
AsianSensation
Mon Mar 07, 2005 8:24 pm


-----------------------------------
Because the teacher also happen to use this site, and these people like to procrastinate till the last moment, so they contact the teachers the only way they know how: compsci.ca.

-----------------------------------
Flikerator
Mon Mar 07, 2005 8:28 pm


-----------------------------------
Because the teacher also happen to use this site, and these people like to procrastinate till the last moment, so they contact the teachers the only way they know how: compsci.ca.

That makes sense. Our teacher only "allowed" us to work at home. We wern't able to take turing school... :evil: We had to get our own copies grr..

-----------------------------------
[Gandalf]
Tue Mar 08, 2005 4:58 pm


-----------------------------------
What?!  That's bs, they should at least given you a copy if you needed one  :roll: .  And you weren't  allowed to do Turing at school?  What kind of a course is that  :snooty:

-----------------------------------
person
Tue Mar 08, 2005 5:40 pm


-----------------------------------
if ur not allwed to do turing at school...wat do u do at school?????
