Computer Science Canada

First turing program

Author:  Michael516 [ 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.

Author:  Tony [ 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

Wink

Author:  StealthArcher [ 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! Sad
Sad
Sad

Author:  Michael516 [ 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.

Author:  Tony [ 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 Claping

Author:  Doug101 [ Tue Apr 01, 2008 8:00 am ]
Post subject:  Re: First turing program

fun game i liked it alot.

Author:  andrew. [ 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.

Author:  Tallguy [ 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

Author:  repsoccer16 [ Tue Apr 15, 2008 7:49 am ]
Post subject:  RE:First turing program

good game michael...pretty good for your first program.

Author:  Michael516 [ 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.

Author:  crysis [ Tue Apr 15, 2008 8:25 am ]
Post subject:  RE:First turing program

can u actually do that??????????????????????????????????????????????????????????????

Author:  Michael516 [ 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

Author:  crysis [ Tue Apr 15, 2008 8:31 am ]
Post subject:  RE:First turing program

ok ill time you you have till friday!!!

Author:  crysis [ Wed Apr 16, 2008 7:58 am ]
Post subject:  RE:First turing program

hurry up u dont have much time left!!!

Author:  Michael516 [ Wed Apr 16, 2008 8:01 am ]
Post subject:  RE:First turing program

i still have 6 more days!!!! plenty of time.

Author:  crysis [ Wed Apr 16, 2008 8:01 am ]
Post subject:  RE:First turing program

wat no u only have 3 days!!!

Author:  Michael516 [ Wed Apr 16, 2008 8:01 am ]
Post subject:  RE:First turing program

there are 7 days in a week not 4!!!

Author:  crysis [ Wed Apr 16, 2008 8:02 am ]
Post subject:  RE:First turing program

i know
its the third day of the week

Author:  crysis [ Wed Apr 16, 2008 8:03 am ]
Post subject:  RE:First turing program

you have till friday not next tuesday

Author:  repsoccer16 [ Wed Apr 16, 2008 8:06 am ]
Post subject:  RE:First turing program

a week is tuesday doug you idiot Razz

Author:  crysis [ Wed Apr 16, 2008 8:24 am ]
Post subject:  RE:First turing program

hey i said till friday

Author:  Michael516 [ Wed Apr 16, 2008 8:27 am ]
Post subject:  RE:First turing program

it doesn't matter what you said, i said one week!! it's my program!

Author:  crysis [ Wed Apr 16, 2008 8:28 am ]
Post subject:  RE:First turing program

fine have six more days

Author:  repsoccer16 [ Wed Apr 16, 2008 8:31 am ]
Post subject:  RE:First turing program

haha doug got owned.

Author:  crysis [ Wed Apr 16, 2008 8:32 am ]
Post subject:  RE:First turing program

shut up repsoccer

Author:  crysis [ Wed Apr 16, 2008 8:32 am ]
Post subject:  RE:First turing program

leave me alone let me cry in my corner

Author:  Insectoid [ Wed Apr 16, 2008 4:29 pm ]
Post subject:  RE:First turing program

Nice paint job on that warhammer high elf there Michael (It is a warhammer high elf, right?)

I myself play 40k and lotr.

You going to gamesday?

(if that pic was randomly picked off the internet, and you have no idea what warhammer is, please let me know so I can stop making a fool of myself.

Author:  Sean [ Wed Apr 16, 2008 4:38 pm ]
Post subject:  RE:First turing program

Also, for what Tony suggested with the answers, you might want to check if it is not a proper response then display a message.

Turing:

if answer1 >= "e" then
put "Not an available option"
end if

Author:  Michael516 [ Thu Apr 17, 2008 7:19 am ]
Post subject:  RE:First turing program

yes i do play warhammer, but i did not paint this one my self and I don't think that i am going to games day, none of my guys are painted very well yet.

Author:  crysis [ Thu Apr 17, 2008 7:32 am ]
Post subject:  RE:First turing program

hey Michael have u started on the program yet???

Author:  Michael516 [ Thu Apr 17, 2008 7:40 am ]
Post subject:  RE:First turing program

i'm almost finished

Author:  repsoccer16 [ Thu Apr 17, 2008 7:45 am ]
Post subject:  RE:First turing program

doug be quiet your input is not necessary Razz

Author:  Dan [ Thu Apr 17, 2008 5:50 pm ]
Post subject:  RE:First turing program

This is not the place to be having casual discutions with your firends. If you wish to do that pelase use the PM system or Off Topic/User Louges.

If you contionue to make unrealted posts, this topic will be locked.

Author:  repsoccer16 [ Mon Apr 21, 2008 7:32 am ]
Post subject:  RE:First turing program

fine then we will just pm each other...ty for your input and it won't happen again.


: