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

  Test the invoice application

Study the error message and note the line number in the statement in the InvoiceApp class that caused the crash. Then click on the link to that line of the code.

  User session mgr - socket and thread programs

User Session Mgr - Socket and Thread Programs

  Accesses element of array

Which of the following correctly accesses element 13 of array Book

  Write down a java program which prints out division by zero

write a java program that prints out division by zero and array out of bounds exceptions when a user attempts to find

  A program called invoice that will prompt the user for items

write a program called invoice that will prompt the user for items on and invoice and then print the total of the invoice

  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,

  Function that finds the smallest item in an arraybag

Write me a function that finds the smallest item in an ArrayBag (by reference) and returns true if the arrayBag is not empty and false otherwise.

  Using a link list implementation

Using a link list implementation, simulate the war car game. The program should read an input of several line of card values and output the winner and the number of rounds it takes.

  Design a java program that simulates a slot machine

Design a java program that simulates a slot machine. When the program runs, it should do the following: Ask the user to enter the amount of money he or she wants to insert into the slot machine. ? Instead of displaying images, the program will random..

  Write a method called range that returns the range of value

Write a method called 'range' that returns the range of values in an array of integers. The range is defined as 1 more than the difference between the maximum and minimum values in the array. For example, if an array called list contains the value..

  Write a java program using array to auto-grade exams

Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student.

  Calculate the total hours of over lapping meetings

Suppose you have a meeting room which can hold multiple meetings and the smalled duration of meeting can be 30 mins. Calculate the total hours of over lapping meetings.

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