Computer Science Canada how to generate different odds of winning? |
Author: | yingmu [ Sun Mar 06, 2005 9:42 pm ] |
Post subject: | 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? |
Author: | guttface [ Sun Mar 06, 2005 9:46 pm ] | ||
Post subject: | |||
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:
|
Author: | guttface [ Sun Mar 06, 2005 9:56 pm ] | ||
Post subject: | |||
i forgot- u'll need to use
|
Author: | person [ Mon Mar 07, 2005 3:31 pm ] |
Post subject: | |
didnt someone ask the same question yesterday? |
Author: | [Gandalf] [ Mon Mar 07, 2005 5:10 pm ] |
Post subject: | |
Ya, probably same assignment too! http://www.compsci.ca/v2/viewtopic.php?t=8011 |
Author: | Flikerator [ Mon Mar 07, 2005 8:18 pm ] |
Post subject: | |
[Gandalf] wrote:
Lolz thats funny. Why don't people just ask there teachers? *Rolls eyes* |
Author: | AsianSensation [ Mon Mar 07, 2005 8:24 pm ] |
Post subject: | |
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. |
Author: | Flikerator [ Mon Mar 07, 2005 8:28 pm ] |
Post subject: | |
AsianSensation wrote: 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... ![]() |
Author: | [Gandalf] [ Tue Mar 08, 2005 4:58 pm ] |
Post subject: | |
What?! That's bs, they should at least given you a copy if you needed one ![]() ![]() |
Author: | person [ Tue Mar 08, 2005 5:40 pm ] |
Post subject: | |
if ur not allwed to do turing at school...wat do u do at school????? |