Create a tic-tac-toe program

Assignment Help Programming Languages
Reference no: EM13810084

Without using the Graphics API In Raptor Programming software could you please 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.

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: EM13810084

Questions Cloud

Detrimental to morale and production : The chefs complain that Crine is outspoken, easily offended, domineering, and rebellious. They claim she is the cause of all disharmony in the kitchen and detrimental to morale and production.
Explain how the components are related to each other : Describe the function and purpose of each component above. Explain how the components are related to each other. For example, does the component depend on another to operate? Is it connected to the network physically or wirelessly
Create a brochure that informs people about accounting : Create a brochure that informs people about Accounting through the use of written and visual texts. It need to be two sided , three paneled brochure.
What created our need for such huge amounts of storage : What created our need for such huge amounts of storage? How have our storage habits changed? What is the perfect balance for you in how you use nonvolatile storage?
Create a tic-tac-toe program : Without using the Graphics API In Raptor Programming software could you please 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
Control of an electric heating system : Diagram of the control of an electric heating system. The heater is driven from a voltage-controlled power supply, the voltage V1 being derived from a potientiometer.
Argument for and against the regulation of derivatives : Examine the argument for and against the regulation of derivatives. Suggest at least two (2) reasons the government should or should not regulate the trading of derivatives. Provide a rationale for your suggestions.
Presentation of strategic plan : Presentation of strategic plan
Strategies for addressing conflict in relationships : Strategies for addressing conflict in relationships, Positive and negative aspects of divorce, Comparing types of love relationships

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a prolog relation remove

Write a Prolog relation remove(E,L,R) that is true if R is the list which results from removing one instance of E from list L. The relation is false if E isn't a member of L.

  Provide an analogous response when adding the two positive

What is the range of values that the multiplication of those two numbers (a ? b) will have - Provide an analogous response when adding the two positive n-bit and m-bit numbers (a + b).

  What is the value displayed on the led

In the Data1: window, right click on num1, then left click on Show Location.  The value of the initialized variables should appear in the Memory window. Cut and paste the Memory window. What is the value displayed on the LEDs after you single step th..

  Write program which asks user for names

Write down a program which asks user for names (Prompt user with something like "Enter a name, or q when finished"), assigns new Person (in heap memory) for each of them.

  Write program two functions to solve problem of university

Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members.

  Determining suitable parameters if pass-by-reference is used

Subprocedures in VBA utilize pass-by-reference. Which function or sub procedure alters its parameter?

  Write the application using the one-dimensional array

Write the application using the one-dimensional array which inputs ten numbers from user, each number can be between and 100, inclusive.

  One-dimensional as array of counters to solve problem

Write program which determines how many salespeople earned salaries in each of following ranges. Use the one-dimensional as the array of counters in solving this problem

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Create program which tests each member of resistor class

Create program which tests each member of Resistor class to ensure that they work properly. Complete the following Tasks: Create main function and instantiate three Resistor Class objects: Resistor1, Resistor2 and Resistor3.

  Creating application to test class rectangle

Write down application to test class Rectangle.

  Write function to merge contents of two sorted arrays

Write a function which will merge contents of two sorted (ascending order) arrays of type FLOAT values, use efficient bubble sort to sort two arrays first and then use merger function.

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