Tic Tac Toe Program
Author |
Message |
rahman200012
|
Posted: Mon Jan 07, 2008 9:10 pm Post subject: Tic Tac Toe Program |
|
|
Hello programmers =P. I need help on a tic tac toe program for my grade 11 project. Could anyone help me find any ways about tackling this project. Bare in mind that my knowledge is very limited to Java and I have only been recently been introduced to arrays and methods. My class is using an older version of Java (i.e. c.readInt). We do not use system.out. Any input would be appreciated. Anyways these are the basic guidelines for my final project:
You are to develop a ?Trivia Tic Tac Toe?. This game will allow two players to participate.
The game will include:
a) A Tic Tac Toe board
b) Fifty trivia questions
When the game is run:
a) The players may choose the marker. They will use (X or O)
b) The fifty trivia questions will be arranged in a random order
c) The Tic Tac Toe playing board will be visible on the screen.
d) A trivia question will be presented on the screen together with the means to enter an answer.
e) If the answer is correct, the player will b allowed to choose a square where he or she may place an X or O.
f) If the answer is incorrect, the player will not be allowed to choose a square.
g) As each question is used, it must be eliminated from the question pool so it cannot be used again during the game.
h) When a player arranges a pattern of three Xs or three Os that is lined up either diagonally, horizontally, or vertically, a winner is declared.
i) If the game ends with all the squares filled, but no winner is declared, the game is declared a draw.
j) The players will then be given a choice of whether to play another game or exit the program.
Criteria
1. Fifty questions arranged in random order /10
2. Trivia questions are presented on the screen with the means
to answer them. /10
3. No question is to be used more than once during the game /10
4. i) Tic Tac Toe playing board is visible
ii) If answer is correct, player is allowed to choose a square
where he or she may place an X or O; if incorrect
players may not choose a square. /10
5. When a pattern of three Xs or three Os line up horizontally,
vertically or diagonally a winner is declared; else the game is
called a draw. The board is cleared and players are given a
choice of whether to play again or exit. /10
6. Running of the game (a, g, h, i, j) /50
7. Appropriate extras /10 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
|
|