Implement a Tic Tac Toe game that uses three threads

Assignment Help Programming Languages
Reference no: EM132265183

Problem -

Goal - Implement a Tic Tac Toe game that uses three threads.

Requirements: Create a program that has a main thread and two sub threads. All threads share a data structure that contains the state of the Tic Tac Toe board. One sub-thread represents the X's, the other they Y's.

Write a simulation where the main thread determines if the game is won, tied, or which sub-thread can move. The main thread will notify a sub-thread if it can make a move.

A sub-thread makes a move by selecting a position on the playing board. This can be done by asking the user for input, or by creating an AI that will select moves for each player.

Once the game is won, each thread should stop executing, then the main program should exit.

The output of the program should clearly state when each thread is created, destroyed, or when it is active/deactivates (i.e. main thread is calculating if the game is won).

Additionally, information about the game should be present. I.e. starting the game, prompting the user for input (if applicable), and the conclusion of the game.

Reference no: EM132265183

Questions Cloud

Identify sustainable supply chain : Identify Sustainable Supply Chain? Support your work with some referencing and citations
Should states interfere by passing laws in this regard : Discuss the current conflict between women's ability to fill their prescriptions for birth control and emergency contraception and an individual pharmacist's.
Corporate stakeholders are under pressure from investors : Corporate stakeholders are under pressure from investors, shareholders, customers and nonprofits to ensure sustainability is evident
What are the components of a budget proposal : What are the components of a budget proposal? We had to make a detailed budget for a hypothetical company we are starting and use that to make a detailed budget
Implement a Tic Tac Toe game that uses three threads : Goal - Implement a Tic Tac Toe game that uses three threads. Create a program that has a main thread and two sub threads
Briefly describe the essential elements of your topic : (Our menu will be Art and Literature Analysis in which we will be each choosing a movie that has female leads. Then testing to see if the movies we watch.
Approaches to defining an organization competitors : Which one of these approaches do you think is the most useful and why? Why are these important?
Describe the management dilemma : Describe the management dilemma. Describe and clarify the management dilemma.
Design a strategy for dealing with workers : They just ignore you and complain to other workers about reporting to someone your age. Design a strategy for dealing with these workers and your manager.

Reviews

len2265183

3/24/2019 10:54:17 PM

Submission Requirements - Include a Make file that will create a programs named TTT. automated grading setup for this project and unless you follow these requirements, Grading Rubric - Threads created properly, Synchronization used properly, Program exits properly. Program works as expected.

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