Create a graphical interface using the graphics class

Assignment Help Computer Engineering
Reference no: EM132096073

Please help with WELL COMMENTED java code tic tac toe game using all guidelines below

This must be implemented using

Swing to create a graphical interface, and using the Graphics class for drawing the board, the markers, and line through the winning set of markers.

The design of the GUI is up to you, provided you have the following:

•a way for the user to select who goes first;

•a way for the user to select their marker ("X" or "O");

•a START button to begin the game;

•a way to indicate whose move it is, whether someone has won, and any other information you deem appropriate;

•a tic-tac-toe board drawn within the window;

•a way to detect mouse clicks inside the game board, and respond to them by drawing the user's marker in the selected square;

•a computer response when it is the computer's move;

•a way to automatically detect (and indicate on the game board) when someone has won; and

•a button to start a new game after the game ends.

Additionally, you should do all necessary sanity checking during the game. For example:

•the user should not be able to take two moves in a row without the computer moving in-between;

•the user should not be able to continue playing after the game has ended;

•only marks in valid, empty squares are allowed; and so on.

Reference no: EM132096073

Questions Cloud

Polynomial regression : A research ?ts a polynomial regression to his data, but ?nds that the prediction on the edges of his dataset are wildly inaccurate.
Compare symmetric and asymmetric encryption schemes : Compare symmetric and asymmetric encryption schemes, and discuss the circumstances under which you would use each.
Means clustering on dataset : You run K-means clustering on your dataset with K = 5 and get some result. Your coworker takes the same dataset, runs K-means clustering
Classify observations in a dataset into two classes : You are running a logistic regression in order to classify observations in a dataset into two classes. When discussing this with your colleagues
Create a graphical interface using the graphics class : Swing to create a graphical interface, and using the Graphics class for drawing the board, the markers, and line through the winning set of markers.
Suggest an algorithm that could be used : A delivery services wishes to partition its customers' locations in a city so that (a) each set contains geographically close points, and (b) the number
Equivalent to ?tting the decision tree without bagging : Suppose we ?t a decision tree using bagging with B bootstrapped training sets. For each of the following
Show the result of inserting all of the elements : Show the result of inserting all of the elements using quadratic probing to resolve collisions. (Place null in the unused locations.)
How will electromycycle choose vendors and interact : How will ElectroMyCycle acquire, configure, and audit computer systems and networks? How will ElectroMyCycle choose vendors and interact with them?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Identify the actors of the scenario

Suppose the scenario in part a of this question. Identify the actor(s) of the scenario. Next write the corresponding use case SetCalendarEvent. Add all cases, and include setting the actual day and time of your birthday.

  Debate the major pros and cons of implementing such a policy

Many companies, large and small, have implemented Bring Your Own Device (BYOD) policies allowing employees to use their personal smartphones and tablets.

  Which major providers offer cdma and which pcs

Through a web search contrast CDMA with PCS systems. Which major providers offer CDMA, and which PCS? Search for the keyword WAP.

  Write loop that prints elements that are in both set s and t

How can you correctly implement the test of Self Check 12? Write a loop that prints all elements that are in both Set s and Set t.

  Access the customerm.java file

design the class file that is needed to be run with this code, that is, write the class file that is implied by the main method. Post this code to your MS Word solution document for this assignment.

  Identify the fundamentals of public key infrastructure

Imagine you are an Information Systems Security Officer for a medium-sized financial services firm that has operations in four (4) states (Virginia, Florida).

  What appears to be the trend in the newer protocols

Compare the older multiplexing techniques such as frequency division and time division multiplexing. What appears to be the trend in these newer protocols?

  Create an application that simulates rolling a pair of dice

Create an application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two random numbers, each in range.

  Information has many facets value confidentiality integrity

information has many facets value confidentiality integrity privacy legality and so on. all information is not the same

  Questioninline internal procedures deposit and withdraw

questioninline internal procedures deposit and withdraw. that is replace references to them by the bodies of

  How much confidence do you have in those measures

What measures does your company or school implement to ensure the security of Web-based applications? List some examples. How much confidence do you have in those measures? Justify your response.

  Would you consider dividing the work performed

Would you consider dividing the work performed by this program in multiple threads on a single-core system? Why?

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