Author |
Message |
Michael516
|
Posted: Wed Mar 05, 2008 12:38 pm Post subject: First turing program |
|
|
I started turing about a month ago and this is my first biger than 1kb turing program, it is a trivia game. there are five questions, some are trick questions so watch out.
Description: |
|
Download |
Filename: |
Trivia Game.t |
Filesize: |
6.84 KB |
Downloaded: |
1646 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Wed Mar 05, 2008 1:21 pm Post subject: RE:First turing program |
|
|
this is quite good for a month of Turing -- it, by far, beats a lot of end of term "projects" that attempt to code trivia games. Good job.
something I found weird though
Turing: |
if answer1 = "a" or answer1 = "b" or answer1 = "c" or answer1 = "d" then
...
elsif answer1 = "e" then
...
end if
|
One problem is that if I enter anything else (such as "q"), I get no response what so ever. And really, typing out all of those "or answer = ..." is just annoying.
Turing: |
if answer1 = "e" then
...
else
...
end if
|
also, this is neat. Instead of if answer1 = "a" or answer1 = "b" or answer1 = "c" or answer1 = "d" then you could use
Turing: |
if answer1 >= "a" and answer1 <= "d" then
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
StealthArcher
|
Posted: Wed Mar 05, 2008 1:22 pm Post subject: RE:First turing program |
|
|
For one month this is pretty nice.
Try to read up on procedures, and file I/O for yeur next program and make it better!
Oh, and my anti virus is better than THAT!
|
|
|
|
|
|
Michael516
|
Posted: Wed Mar 05, 2008 1:45 pm Post subject: Re: First turing program |
|
|
thanks i never thought to put
"if answer1 >= "a" and answer1 <= "d" then"
that could really shorten some future programs
at first i was going make it so that if you got too many questions wrong your computer would shut down but i dicided not to because i figured some people might not like that.
|
|
|
|
|
|
Tony
|
Posted: Wed Mar 05, 2008 2:10 pm Post subject: Re: First turing program |
|
|
Michael516 @ Wed Mar 05, 2008 1:45 pm wrote: but i dicided not to because i figured some people might not like that.
I think that was a good call on your part
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Doug101
|
Posted: Tue Apr 01, 2008 8:00 am Post subject: Re: First turing program |
|
|
fun game i liked it alot.
|
|
|
|
|
|
andrew.
|
Posted: Mon Apr 07, 2008 6:45 pm Post subject: Re: First turing program |
|
|
It's really good for your first big program. It reminds me of the stupid test.
|
|
|
|
|
|
Tallguy
|
Posted: Mon Apr 14, 2008 8:25 am Post subject: RE:First turing program |
|
|
that is really cool, but the virus looks kinda fake though, good job
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
repsoccer16
|
Posted: Tue Apr 15, 2008 7:49 am Post subject: RE:First turing program |
|
|
good game michael...pretty good for your first program.
|
|
|
|
|
|
Michael516
|
Posted: Tue Apr 15, 2008 8:20 am Post subject: RE:First turing program |
|
|
right now i am working on a program that will delete the internet but it is proving to be very difficult.
|
|
|
|
|
|
crysis
|
Posted: Tue Apr 15, 2008 8:25 am Post subject: RE:First turing program |
|
|
can u actually do that??????????????????????????????????????????????????????????????
|
|
|
|
|
|
Michael516
|
Posted: Tue Apr 15, 2008 8:27 am Post subject: RE:First turing program |
|
|
of coarse i can it will be done in about a week
|
|
|
|
|
|
crysis
|
Posted: Tue Apr 15, 2008 8:31 am Post subject: RE:First turing program |
|
|
ok ill time you you have till friday!!!
|
|
|
|
|
|
crysis
|
Posted: Wed Apr 16, 2008 7:58 am Post subject: RE:First turing program |
|
|
hurry up u dont have much time left!!!
|
|
|
|
|
|
Michael516
|
Posted: Wed Apr 16, 2008 8:01 am Post subject: RE:First turing program |
|
|
i still have 6 more days!!!! plenty of time.
|
|
|
|
|
|
|