This is how the questions and answers are stored in text file.
Eg:
1+1 2 3
2+3 5 9
8-4 4 5
The first element
is the question, the second one is the correct answer, and the third is the wrong
answer.
The program
will read this text file and show question and answer above the playing screen.
The answers are regarded to A and B (A and B are picked randomly to represent
as true or false answer). User must control the snake to eat the right answer.
If snake eats the correct answer, the score will be increased, otherwise, both
score and life will be decreased by one. If the life remained is zero, the game
is over.
The behavior
of the snake: moving left, right or forward. Life and score generation (depends
on user’s answer picked). Questions are selected from the text file randomly.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น