Computer Science Canada

the impossible quiz:turing edition beta 0.5

Author:  tg851 [ Wed Nov 30, 2011 11:31 am ]
Post subject:  the impossible quiz:turing edition beta 0.5

the impossible quiz Turing edition is a little pet project that I've been working on for a while on the side,im releasing it now as a beta(more questions to come)to get a genral idea of how it is and any bugs that i haven found
current features:
IMPOSSIBILITY
an appropriate soundtrack
more to come:
more questions
skips
life display meter
other bits and bobs
insanity mode

have fun an try not to die(or go insane or punch a hole in the wall)

Author:  tg851 [ Wed Nov 30, 2011 1:25 pm ]
Post subject:  RE:the impossible quiz:turing edition beta 0.5

uhhhh,minor TARFUBAR on some of the questions and forgot to add the * to make the string take spaces,if a question puts more than one wrong per answer post the question itself(question numbers are unreliable)

Author:  tg851 [ Fri Dec 02, 2011 10:56 am ]
Post subject:  Re: the impossible quiz:turing edition beta 0.5

*update*
multiwrong bug is fixed
here's the new fixed source code
sorry it took so long for something so simple, didn't have any time(week has been nuts)
also,if you got an idea for a question for the quiz tell me,i may just put it in

Author:  Aange10 [ Sat Dec 03, 2011 8:07 pm ]
Post subject:  RE:the impossible quiz:turing edition beta 0.5

Okay, so here's some maybe-useful help:

"the impossible quiz:turing edetion" is terrible. At least have some grammar. Spell the words right. Punctuation is pretty important in life. Goes for capitalization as-well.

Next, the confusing is instructions. ... What? Yeah, that's how I felt reading the intro; make it simple. Try making them:
1) Correct, as I see you've add : * to the end of your gets.
2) Not case sensitive. Try using Str.Lower () to compare the answers. If you don't know about it, information on it can be found under String Manipulation in the Turing Walkthrough.

Lastly, you seem to be doing the same thing over and over. This is a flag that usually means we need to use a for or a procedure. In this instance, we will need a procedure. If you don't know about them, information is in the Turing Walkthrough, under functions and procedures.


Turing:

loop
    get text:*
    exit when text = "password"
    put "wrong"
    life := life - 1
    if life = 0 then
        Error.Halt ("HA-ha you lose")
    end if
end loop


Once you know about procedures, you'll realize how redundant this code is, and how it should be a procedure. Or better yet, a function!


: