FAQ
- Q. When will you add questions to the FAQ?
A. Pretty much when I get them
- Q. When the board is 4x4, 5x5, etc, would the player have to get
4, or 5 in a row, or still three?
A. The player must get N in a row, where N is the size of the
board, so 4 on a 4x4, 5 on a 5x5 etc
- Q. How do I accept moves from the human player?
A. This is beyond the scope of the project. There are no human
players in this tic-tac-toe demo. Your program will instantiate two
computer opponents, who will compete against each other.
- Q. How do I get a random number?
A. There is a class that generates random numbers. This is
java.util.Random. Import and create an instance of this class, with no
arguments. To get a random number use the method 'int nextInt( int n )'
This method will return a random number between 0 and n
- Q. Can I modify my design as I implement?
A. Minor modifications are to be expected. You may make minor
modifications, but please document these in your README file before you
turn in your program. (Minor modifications include the addition of
helper methods, some changes in arguments, but not changing the overall
communication strategy between different parts of your program). If you
are contemplating a major change to your design, please communicate
with me on an individual basis.
FiFo Queue.
I am providing the following archive of an implementation of a fifo
queue, for anyone who wishes to use it.
To use it, download the file, unpack the archive, and put the resulting
directory in your project directory. To use the queue, put the
following line in whichever Java file you wish to access the library
from: import support.FiFoQueue;
FiFoQueue