Create a tic-tac-toe

Assignment Help JAVA Programming
Reference no: EM13820228

create a tic-tac-toe

create a tic-tac-toe program that allows two to three players using a two dimensional string array with three rows and three columns as the board. Attach this as a raptor flowchart file.

Each element of the arrays should be initialized with an asterisk. Rules: Displays the contents of the board array Allows player 1 to select a location on the board for an X. The program should ask the user to enter the row and column number. Allows player 2 to select a location on the board for an O.

The program should ask the user to enter the row and column number. Determines whether a player has won or if a tie has occurred. If a player has won, the program should declare that player the winner and end. If a tie has occurred, the program should say so and end. Player 1 wins when there are three Xs in a row on the game board. Player 2 wins when there are three Os in a row on the game board. The winning Xs or Ox can appear in a row, in a column, or diagonally across the board. A tie occurs when all of the locations on the board are full, but there is no winner.

Reference no: EM13820228

Questions Cloud

How reliable and accurate are computer models : How reliable and accurate are computer models
Describe strategies for obtaining reliable data : Describe strategies for obtaining reliable data and staying current with trends when dealing with an international context.
Address the metaparadigm theories of nursing : Describe the definition of nursing as put forward by the American Nurses Association.How does it address the metaparadigm theories of nursing?
Examine the impact of us population : Examine the impact of U. S. population demographic changes on the demand for different goods
Create a tic-tac-toe : create a tic-tac-toe
Discuss how urbanization impacts the phenomenon : Define "epidemiological transition" and discuss how urbanization impacts this phenomenon. Cite specific examples from the article. Is this same trend that was seen in Mozambique true in the United States?
Ethical issues that managers should be aware : At least 2 ethical issues that managers should be aware of when managing their sales reps for your selected company. Explain the appropriate response that should be taken in each case
Use programming project: create a gpa calculator : Use programming project: Create a GPA calculator
Professional nursing organizations in networking : Explain the value that professional nursing organizations in networking and in the legislative process. Provide a rationale for your response.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a bluej project- birthday paradox

The birthday paradox states that if there are 23 people in a room then there is a slightly more than 50:50 chance that at least two of them will have the same birthday.

  Write paper about focuses on the popularity of java

You will write a 4-5-page research-oriented paper in APA format that focuses on the "Popularity of Java"

  You need to find out the average score how many scores are

suppose that you have an array of baseball scores type integer called scores. the values in the array are ordered from

  Write a class house that correctly compiles and runs

Write a class House that correctly compiles and runs with the following TestHouse code. You cannot change a single thing in the TestHouse class,

  Explain the graphical coordinate system in java where is

question 1 describe the graphical coordinate system in java. where is the origin? what units apply to the xy

  Write a main method that will simulate playing the game

On the Monty Hall game show, a contestant is given a choice of three doors. Behind one door is a car and behind the other two doors are goats.

  Create a class rectangle with attributes length and width

Create a class Rectangle with attributes length and width, each of which defaults to 1. Provide methods that calculate the rectangle's perimeter and area

  Create a project in eclipse

Create a new project

  Paper on mobility-cdma and gsm

Discuss a minimum of three mobile web applications that are familiar or that you used regularly.

  A java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Example of a problematic programming situation or scenario

Suggest one (1) example of a problematic programming situation or scenario that the use or implementation of a sequence structure could resolve

  Compare and contrast the treatment of war

Compare and contrast the treatment of war in O'Brien's "The Things They Carried" and Frank O'Connor's "Guest of the Nation." 3-5 page MLA Format

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd