| Author |
Message |
[Gandalf]

|
|
|
|
 |
Sponsor Sponsor

|
|
 |
md

|
Posted: Wed Oct 05, 2005 10:37 pm Post subject: (No subject) |
|
|
I would do that if I could re-write it in C or C++ or pascal (for which I have compilers), and if it told you if you were too high or two low. But that would make it rather trivial
|
|
|
|
|
 |
beard0

|
Posted: Thu Oct 06, 2005 7:02 am Post subject: (No subject) |
|
|
[Gandalf] wrote: http://img385.imageshack.us/img385/3065/win2zs.jpg
Guess I win  .
If you're going to edit it, try to make it more realistic: There is no "pause" or "stop" button once execution has finished!
|
|
|
|
|
 |
[Gandalf]

|
|
|
|
 |
beard0

|
Posted: Thu Oct 06, 2005 3:46 pm Post subject: (No subject) |
|
|
[Gandalf] wrote:
Wow, that's amazing! How'd you know that that's what it was?
Nice use of the shifty eyes
|
|
|
|
|
 |
Tony

|
Posted: Fri Oct 07, 2005 7:59 am Post subject: (No subject) |
|
|
| Turing: |
Rand.Set (1)
if Rand.Int (1, 999999999) = 720446773 then
put "haxor"
end if
|
|
|
|
|
|
 |
StarGateSG-1

|
Posted: Fri Oct 07, 2005 9:24 am Post subject: (No subject) |
|
|
Nope Sorry Gandalf not luck for you, I should have been more clear I need to see all the source code i can't read what the Rand.Int max is.
Plus the chnace of getting that right is insane mainly becasue it resets everytime.
I don't think anyone could get that right and have all the source code running, included the the entire background of Windows.
|
|
|
|
|
 |
[Gandalf]

|
|
|
|
 |
Sponsor Sponsor

|
|
 |
StarGateSG-1

|
Posted: Mon Oct 10, 2005 9:17 pm Post subject: (No subject) |
|
|
The problem isn't trust, jst that unless you sit there for hours I dout you would get the number!
Please take another one without another turing window open. So just the program and the run window, even better I think i can post complied file now!
| Description: |
|
 Download |
| Filename: |
Unnamed.zip |
| Filesize: |
274.04 KB |
| Downloaded: |
132 Time(s) |
|
|
|
|
|
 |
[Gandalf]

|
Posted: Mon Oct 10, 2005 9:29 pm Post subject: (No subject) |
|
|
Pah... Give me a break, what could another Turing window do? You see it is Unnamed #2, that's what the source file is, and that's all I'm going to be bothered to show. Think about how hard it would be to guess the number for the third time would be.
I hope you get my point, if not, I will enlighten you later.
|
|
|
|
|
 |
Tony

|
Posted: Tue Oct 11, 2005 7:40 am Post subject: (No subject) |
|
|
| Turing: |
View.Set ("title:Unnamed #2* - Turing")
put ""
|
|
|
|
|
|
 |
goboenomo
|
Posted: Thu Oct 13, 2005 11:34 am Post subject: (No subject) |
|
|
codemage wrote: That's some very... uh... linear code you've got there.
You should invest some time in reading about Loops, here:
http://www.compsci.ca/v2/viewtopic.php?t=3678
You'll gain the time back by not having to type so much. (Loops would make the majority of your code below unecessary, since you're basically doing the same thing 10 times.)[/url]
agreed u could cut that code so much smaller
The game: i find it a bit boring..
could put some more creative things into that..
didnt have to go all out with the background and colored letters
|
|
|
|
|
 |
The_Triangle
|
Posted: Sat Nov 12, 2005 8:24 am Post subject: (No subject) |
|
|
StarGateSG-1 wrote: Not to be a bum, but he is making false claims.
Try this out.
+20 bits to the person who beats this, I want a screenshot.
Edit, not working, give me a minute
Well I guess i will have to give the source code, this is wierd it can't upload the file
| code: | var Num_Answer : int
var Num_Guess : int
loop
Num_Answer := Rand.Int(1,999999999)
put "Please enter any number between 1 and 999999999"
get Num_Guess
if Num_Guess = Num_Answer then
put "Congradulations, you beat the longest guessing game ever"
exit when Num_Guess = Num_Answer
else
put "Nope try again"
end if
end loop |
Good luck with this.
can we make it say if its lower or higher than what our guess is?
|
|
|
|
|
 |
Mr. T

|
Posted: Sat Nov 12, 2005 2:21 pm Post subject: (No subject) |
|
|
The_Triangle wrote: StarGateSG-1 wrote: Not to be a bum, but he is making false claims.
Try this out.
+20 bits to the person who beats this, I want a screenshot.
Edit, not working, give me a minute
Well I guess i will have to give the source code, this is wierd it can't upload the file
| code: | var Num_Answer : int
var Num_Guess : int
loop
Num_Answer := Rand.Int(1,999999999)
put "Please enter any number between 1 and 999999999"
get Num_Guess
if Num_Guess = Num_Answer then
put "Congradulations, you beat the longest guessing game ever"
exit when Num_Guess = Num_Answer
else
put "Nope try again"
end if
end loop |
Good luck with this.
can we make it say if its lower or higher than what our guess is?
That would be pointless because you're recieving a new random number every time the loop cycles.
|
|
|
|
|
 |
Clayton

|
Posted: Wed Jan 11, 2006 7:26 pm Post subject: (No subject) |
|
|
| uh, wow, uve got a lot of time on your hands i must say you probably could have shortened that by about 400 lines with some loops and procedures, but to his his own hope you had fun programming that
|
|
|
|
|
 |
|