Write complete application to play game tic-tac-toe, JAVA Programming

(Tic-Tac-Toe) Create class TicTacToe that will enable you to write a complete application to play the game of Tic-Tac-Toe. The class contains a private 3-by-3 rectangular array of integers. The constructor should initialize the empty board to all 0s. Allow two human players. Wherever the first player moves, place a 1 in the specified square, and place a 2 wherever the second player moves. Each move must be to an empty square. After each move, determine whether the game has been won and whether it's a draw. If you feel ambitious, modify your application so that the computer makes the moves for one of the players. Also, allow the player to specify whether he or she wants to go first or second. If you feel exceptionally ambitious, develop an application that will play three-dimensional Tic-Tac-Toe on a 4-by-4-by-4 board.

Posted Date: 3/29/2013 2:18:10 AM | Location : United States







Related Discussions:- Write complete application to play game tic-tac-toe, Assignment Help, Ask Question on Write complete application to play game tic-tac-toe, Get Answer, Expert's Help, Write complete application to play game tic-tac-toe Discussions

Write discussion on Write complete application to play game tic-tac-toe
Your posts are moderated
Related Questions
How can we include images in a web page using HTML and Java script? Image in HTML Image in Javascript Images in JavaScript could be manipulated in several ways using the buil

create thread without extending anything

#questionSmugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they

Describe Inner Classes in java? An inner class is a class whose body is described inside another class, referred to as the top-level class. For instance: public class Queue {


Build an android app like the example in the project details Project Description: Construct an android app like cam finder using my own ideas, design and features which I wil


Explain the Execute phase of Java Program Development Finally in phase computer, under the control of its CPU, interprets program one bytecode at a time. Hence performing

What are the different scopes for Java variables? The scope of a Java variable is explained by the context in which the variable is declared. Therefore a java variable can have

class Writer extends Client {    // additional members    private boolean technical = false;    private boolean government = false;    private boolean international = false;    pri