Tic-tac-toe game assignment

Assignment Help JAVA Programming
Reference no: EM13172272

Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached)

Attachment:- Tic Tac Toe game.docx
This assignment consists of two (2) sections: 

  • a Java program file
  • a screen shot of the output and a description of your Java program

Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.
Section 1: Java Program File
Improve your Java program from Assignment 1. According to your design, the program must:

  • Use 2D graphics, instead of text, to display the Xs and Os in the grids of the square- shaped buttons.
  • Use either decision logic or recursion in order to determine whether or not a player wins the game. That is, every time the player draws an X or O on the board, the program checks all possible combinations in order to see if the player wins the game. Note:There are a total of eight (8) possibilities to win the game. Your program should check each possibility for the player. The eight (8) possibilities are:

          - 3 across in the first row
          - 3 across in the second row
          - 3 across in the third row
          - 3 vertical in the first column
          - 3 vertical in the second column
          - 3 vertical in the third column
          - 3 diagonal like a backslash
          - 3 diagonal like a forward slash

  • Display a message which announces whether or not the player has won the game.
  • Include a sound effect that plays to declare a winner.
  • Reset the game once the player has won.

Section 2: Screen Shot of the Output and Description of Your Java Program
Create a screen shot of the output and include a description about your Java program.

  • Create a screen shot which shows the output of your Java program.  
  • Include a one (1) page description of your program. Note: Use MS Word for your program description, and place the screen shot of the output from your Java program into the Word file as an attached image.
  • Include a one (1) to three (3) paragraph pseudocode that illustrates the way in which you use either decision logic or recursion in order to determine whether or not the player wins the game.

 
Assignment 2: (Java) 
The following method, numPaths, is supposed to count the number of paths,

but it has some problems. Debug the method.

 
int numPaths(int row, int col, int n)

{

if (row == n)

return 1;

else

if (col == n)

return (numPaths + 1);

else

return (numPaths(row + 1, col) * numPaths(row, col + 1))

}
 
 
Assignment 3 (PL/SQL): 

Write a PL/SQL block to achieve the following:

Find out the average salary in the Employees table.

Then check the salary of each employee in the Employees table. If the salary of an employee is less than the Average Salary in the entire table, increase the salary of that employee by 10%.  If the Salary of an employee is greater than the Average salary in the Employees table, then decrease the salary of that employee by 15%.

Provide complete code of your PL/SQL block using all relevant PL/SQL sections.

Note: All assignment need screen shot.

 

Reference no: EM13172272

Questions Cloud

Wind included with gravity-water and ice agent of erosion : Wind is included with gravity, water, and ice as an agent of erosion. In many national parks and other areas of natural beauty, statements are often made that credit wind as having "sculpted the landscape".
Critical reasoning and the author is by jerry cederblom : This assignment is based on critical reasoning and the author is by Jerry Cederblom and David W. Paulsen.This book is the seventh edition.
Use a diagram to illustrate how economic growth is shown : Suppose that the nation with the initial  PPF  given in the table enjoys a technological breakthrough that enables it to double the production of tractors at each level of food production. Use a diagram to illustrate how economic growth is shown usin..
Draw an rea diagram-data modeling and database design : Data modeling and database design,  Draw an REA Diagram,  Draw an REA diagram for Sparky’s revenue cycle only. Be sure to include cardinalities. State any assumptions you had to make.
Tic-tac-toe game assignment : Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached),  Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.  Section 1: Java Program File, The following method, numPaths, is suppos..
Determine the equivalent units of production : Determine the equivalent units of production with respect to (a) direct labor and (b) direct materials. Compute both the direct labor cost and the direct materials cost per equivalent unit.
State the column required for the best purification : Give the steps to prepare the column required for the best purification of 0.40g of crude product using silica
Compute the rate of water removal from the condenser : Calculate the rate of water removal from the condenser, the rate of dehumidified (1.50% water) air delivered to the house, and the flow rate and composition of the humid air entering the condenser
State what is the approximate ph at the equivalence point : What is the approximate pH at the equivalence point of a weak acid-strong base titration if 25 mL of aqueous formic acid requires

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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