Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 First turing program
Index -> Programming, Turing -> Turing Submissions
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Michael516




PostPosted: 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.


Trivia Game.t
 Description:
5 question Trivia Game

Download
 Filename:  Trivia Game.t
 Filesize:  6.84 KB
 Downloaded:  1646 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
StealthArcher




PostPosted: 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
Michael516




PostPosted: 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




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Doug101




PostPosted: Tue Apr 01, 2008 8:00 am   Post subject: Re: First turing program

fun game i liked it alot.
andrew.




PostPosted: 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




PostPosted: 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
Sponsor
sponsor
repsoccer16




PostPosted: Tue Apr 15, 2008 7:49 am   Post subject: RE:First turing program

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




PostPosted: 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




PostPosted: Tue Apr 15, 2008 8:25 am   Post subject: RE:First turing program

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




PostPosted: 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




PostPosted: Tue Apr 15, 2008 8:31 am   Post subject: RE:First turing program

ok ill time you you have till friday!!!
crysis




PostPosted: Wed Apr 16, 2008 7:58 am   Post subject: RE:First turing program

hurry up u dont have much time left!!!
Michael516




PostPosted: Wed Apr 16, 2008 8:01 am   Post subject: RE:First turing program

i still have 6 more days!!!! plenty of time.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 3  [ 34 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: