Computer Science Canada I neeed help with a turing jeopardy-style game pleaaase |
Author: | maxx7x7 [ Fri Jun 12, 2009 8:48 am ] |
Post subject: | I neeed help with a turing jeopardy-style game pleaaase |
Index -> Programming, Turing -> Turing Help Preview Posted: Fri Jun 12, 2009 8:48 am Post subject: I neeed help with a turing jeopardy-style game pleaaase Hi i am pretty much a beginner with turing and programming in general and i am trying to make this game for my class. The problem is that i know how to make a question file and call it to the program, but i need to be able to make a bunch of categories with 5 questions each. 6 categories will be placed on the board randomly for each round. Does anybody have any idea of how i could do such a thing? Also i want to make it that after a question is asked its monitary value on the big board disappears, just like in real jeopardy. Im not sure if this is possible but id appreciate any help. thanks All i have is what my teacher sort of provided me with and it is as follows (i do not completely know what it means): var question, guess, answer: string var fileName : string var picID, picWidth, picHeight, streamIn, highScore, random : int randint (random, 1, 6) fileName := "questions" + intstr (random) + ".txt" open : streamIn, fileName, get assert streamIn > 0 loop get : streamIn, question : * put question get : streamIn, answer put "Guess the right answer: " .. get guess if guess = answer then put "you are right" else put "you are wrong" end if exit when eof end loop |
Author: | Tony [ Fri Jun 12, 2009 12:05 pm ] |
Post subject: | Re: I neeed help with a turing jeopardy-style game pleaaase |
maxx7x7 @ Fri Jun 12, 2009 8:48 am wrote: i do not completely know what it means
You should familiarize yourself with the basics at Turing Walkthrough |
Author: | maxx7x7 [ Mon Jun 15, 2009 8:59 pm ] |
Post subject: | RE:I neeed help with a turing jeopardy-style game pleaaase |
that helps |
Author: | syntax_error [ Mon Jun 15, 2009 10:45 pm ] |
Post subject: | RE:I neeed help with a turing jeopardy-style game pleaaase |
I know eh? It has everything you would ever need to know, but many look at http://compsci.ca/v3/viewtopic.php?t=12972 before you go and read it all up =] |