I neeed help with a turing jeopardy-style game pleaaase
Author |
Message |
maxx7x7
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
maxx7x7
|
Posted: Mon Jun 15, 2009 8:59 pm Post subject: RE:I neeed help with a turing jeopardy-style game pleaaase |
|
|
that helps |
|
|
|
|
![](images/spacer.gif) |
syntax_error
![](http://compsci.ca/v3/uploads/user_avatars/196798963948cf16794b6e5.jpg)
|
Posted: 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 =] |
|
|
|
|
![](images/spacer.gif) |
|
|