Computer Science Canada Heres my program for grade 11 programming (1st project) |
Author: | shadow47607 [ Thu Oct 19, 2006 7:59 am ] | ||
Post subject: | Heres my program for grade 11 programming (1st project) | ||
my class is writing a hi-lo-game and we need to make it 2 players if i could get some help i would greatly appreciate it heres the code:
|
Author: | frank26080115 [ Sat Oct 21, 2006 1:43 am ] |
Post subject: | |
im a noob so i dont know how to help you, but the time in seconds it's giving me is wrong |
Author: | Ultrahex [ Tue Oct 24, 2006 7:44 pm ] |
Post subject: | |
This is probably long gone now, but your use of the Time.Elapsed is wrong, you are checking the time from the start of running the program till when you check it. Therefore its not reset on start of hitting easy, and its not reset on play again. You will need a start time and end time and compare them to get how long. |
Author: | do_pete [ Wed Oct 25, 2006 8:38 am ] |
Post subject: | |
What exactly is it that you need help with? Oh, and get rid of that "loading" thing because you're not loading anything and it's anoying. |
Author: | Mathwiz [ Tue Oct 31, 2006 8:56 am ] | ||
Post subject: | Re: Heres my program for grade 11 programming (1st project) | ||
tha was coolk shadow47607 wrote: my class is writing a hi-lo-game and we need to make it 2 players
if i could get some help i would greatly appreciate it heres the code:
|
Author: | shadow47607 [ Thu Nov 02, 2006 2:21 pm ] |
Post subject: | |
i needed help making it 2 player and with getting the time to work properly |
Author: | bruized [ Thu Nov 02, 2006 7:39 pm ] |
Post subject: | |
To make it two player, every time the first user has had his guess then ask the second user to guess. It's actually quite simple. If you're not sure what I mean than just ask. I'll leave the rest up to your imagination, unless you're still having troubles. Now for the time part. The problem is that the time you have it took the user to guess the number is since the beginning when the user started running the program. To eliminate this, take the time.elapsed when the user starts guessing the number and then at the end. Then find the difference between the two numbers and presto!, you have the amount of time it took the user to guess the number. And on a side note, to calculate the amount of seconds your formula is wrong. You divide by a thousand to get the amount of seconds. However in a second there is only a 100 milliseconds. Make these changes and it will work. I already tried. |
Author: | Clayton [ Fri Nov 03, 2006 8:01 am ] |
Post subject: | |
bruized wrote: And on a side note, to calculate the amount of seconds your formula is wrong. You divide by a thousand to get the amount of seconds. However in a second there is only a 100 milliseconds. Wow, I knew the day got shorter last Sunday, but losing 900 milliseconds off of every second? That's impressive. Seriously though, he's right bruized, there are 1000 milliseconds in a second. |
Author: | bruized [ Fri Nov 03, 2006 3:57 pm ] |
Post subject: | |
What?! There's a thousand milliseconds in a second. Oops, sorry. I could've sworn it was one hundred. Anyways, sorry about that (people make mistakes you know ![]() An another side note, how come certain watches show milliseconds but they only have two number instead of three? I guess that's what made me think there was 100 ms in a s. that plus there's 100 mm in 1 cm except cm aren't the base unit so I see where I went wrong. I hope I didn't make any other mistakes ![]() |
Author: | rdrake [ Fri Nov 03, 2006 4:04 pm ] |
Post subject: | |
bruized wrote: What?! There's a thousand milliseconds in a second. Oops, sorry. I could've sworn it was one hundred. Anyways, sorry about that (people make mistakes you know Let's clear some things up here. There are 10 mm in 1 cm, there are 100 cm in 1 m.
![]() An another side note, how come certain watches show milliseconds but they only have two number instead of three? I guess that's what made me think there was 100 ms in a s. that plus there's 100 mm in 1 cm except cm aren't the base unit so I see where I went wrong. I hope I didn't make any other mistakes ![]() As for time, there are 1000 milliseconds in a second, 60 seconds in a minute, 60 minutes in an hour, and 24 hours in a day. Make sense? |
Author: | bruized [ Tue Nov 07, 2006 8:14 pm ] |
Post subject: | |
rdrake wrote: Let's clear some things up here. There are 10 mm in 1 cm, there are 100 cm in 1 m.
As for time, there are 1000 milliseconds in a second, 60 seconds in a minute, 60 minutes in an hour, and 24 hours in a day. Make sense? Yes, it does make sense, I knew that (except for the milliseconds part I kept getting it wrong) but anyways, I had a little typo in my last post. I'm not that stupid ![]() ![]() |
Author: | helpyourselfhelpsomeoneel [ Tue Nov 14, 2006 10:39 am ] |
Post subject: | help |
in my school thpat would falle in a grade 11 |
Author: | TokenHerbz [ Tue Nov 14, 2006 11:28 am ] |
Post subject: | |
Ok, i thought I had a big aviator befor... but helpyourselfhelpsomeoneel, your is retardedly huge.... Shring him asap, befor a dev sees it. |