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 haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  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 .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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