Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SUDOKU game. Using c++ Find an online game book and code up 40 possible Sudoku games. ( use a file to store the 40 possible

SUDOKU game. Using c++

Find an online game book and code up 40 possible Sudoku games. ( use a file to store the 40 possible games)

10 very easy

10 easy

10 medium

10 hard

Have the user pick the level (very easy, easy, medium, hard) and then have the computer randomly pick one(1) of the ten(10) games for that level.

Print out the game board ( 9 by 9 ), and load it with the initial values for the game, in other words pre-populate the game board with those initial values and make them a certain color like BLUE.

The cells where the user is to input values will be blank.

Next, have an easy to use method where a user can select an EMPTY cell and enter a number (Color Green), between 1 and 9.

Be sure to validate that the user is only entering values into an EMPTY cell..

Have the computer check if the user input is a valid value

Inform the user if the number entered by them is not the correct number for the cell.. by placing the incorrect number in the chosen cell for 5 seconds FLASHING, then erase/blank the cell

Keep track of the number of errors the user makes.

Possible scoring 100 points if game complete successfully with no errors subtract 5 points per error.

Show current score on screen.

Code for the following winning conditions with these messages.

At end of game if score == 100 then Excellent Player, should try next level

If score > = 80 and < 100 then Good player, keep practicing on this level

If score >= 60 and < 80 then OK player keep practicing on this level if you dare

If score >= 40 and < 60 Well.. suggest trying a easier level

If score < 40 then Watch this video on how to play.

Have a quit game option available while playing

Have a new game option while playing

Keep track of the number of games played at each level and average of score at that level. (hint files)

Have option to allow user see average for all levels.

THIS GAME IS to be written using C++ Classes

The main function must look like this:

Int main() {

SUDOKU S1; // instantiate game.

S1.startGame(); // start game..

}

All classes are to be written using separate .h interface file and the .cpp implementation file.

There will be NO global variables.

This is a character based application, not a GUI.

What to hand in

A description of your program and its features.

A description of the main data structures your program uses.

A discussion of the current status of your program, what works and what doesn't, etc.

Your program's source code.

Your plan that you used to write your code (See below)

Screen prints of the successful execution of your code.

Grading Criteria

Successful compilation. If your program doesn't compile, I can't grade it.

Correctness. Your program needs to do the job it is intended to do.

Design. I will look for well-considered choices of classes, and methods.

Style. I want to see good indentation, descriptive variable and function names, well-placed comments, consistent loop structure, and so on. Ideally, your code will be a pleasure to read. (This assumes a reader who enjoys reading code, but you're in luck, since I am such a reader.)

Documentation. Your description of your project and the comments in your source code are important parts of your project. I want to be able to understand your project fairly well before diving into the code.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago