Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

program will give you more experience creating GUI applications, and provide a some practice for

working with 2D arrays. In the assignment, you will create a GUI version of the game Mini Sudoku.

Mini Sudoku is a game played on a 6 x 6 grid of squares. At the beginning of the game, some of the

squares are filled in with numbers, and the rest are blank. The object of the game is to place the

numbers 1 to 6 on the board such that the following conditions hold

Each row has the numbers 1 to 6

Each column has the numbers 1 to 6

Each group of 2 rows by 3 columns also has the numbers 1 to 6.

For example, a beginning configuration and solution to a Mini Sudoku board is as follows:

Beginning configuration

4 6 - 3 2 5

2 - 3 - - 6

6 2 4 5 - 1

3 - 5 4 - -

1 4 2 6 - -

- 3 - 2 1 -

Solution

4 6 1 3 2 5

2 5 3 1 4 6

6 2 4 5 3 1

3 1 5 4 6 2

1 4 2 6 5 3

5 3 6 2 1 4

Your goal is to write a program that will allow the user to try and solve mini-sudoku puzzles where the

initial configuration is specified in a text file.

Directions

1. Write an application using Swing that will allow a player to play mini-sudoku.

2. Your program must present the players with a graphical representation of the board of some

kind, perhaps using JTextFields.

3. Your program must gracefully handle the case when a player tries to add a non-number to a

square, or add a number that violates the Sudoku rules. It should prevent illegal moves without

crashing.

4. When the game is over, the game must indicate that the game has been won.

5. The program must provide a menu to allow the user to load a file with an initial game

configuration.

6. The program must provide a menu option to quit the program.

 

 

Java, Programming

  • Category:- Java
  • Reference No.:- M9449033

Have any Question?


Related Questions in Java

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Can someone help me please with those question1what is the

Can someone help me please with those question 1:what is the best data type for student id datatime,currency,number,decimal 2:which relationshipis preferable? one to one,one to many,many to many 3:if you add table A's pr ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As