Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This project is examining you programming skills using C language to write computer programs that solves 8 queens puzzle. Game Description: The eight queens problem

This project is examining you programming skills using C language to write computer programs that solves 8 queens puzzle. Game Description: The eight queens problem is the problem of placing eight queens on an 88 chessboard such that none of them attack one another (no two are in the same row, column, or diagonal). Mandatory Requirements [10 points]: Write a complete C program that solve the 8 queens problem which will accepts from the user two 2-D matrices as an input (chess board) and contain and perform the following function: 1- Print () This function used to print the chessboard at each state (initial state, in progress, solved). 2- ClearBoard () This function used to return the board to the empty state which will remove all queens in the board. 3- Solve () This function used to automatically accept the empty board to be solved, performs some checks to solve the 8 Queen Problem, and presents the final result after placing eight queens on an 88 chessboard in the right places. 4- Play This function used to play the game manually (step by step) enter the place of the queen using its column and row number then the function will check if the place you entered is the safe place; message will display to enter other places for the next queen; if the place you entered is unsafe place, message will appear to tell you this is wrong place then asked you to enter another place then check it again till the 8 queens are placed correctly. 5- A menu should be displayed to the user to choose the appropriate option at the start of the program and after the execution of the selected option until the user chooses to exit from the program. Bonus Requirements: 1- [3 points] Time function used to terminate the game after 1 min. 2- [3 points] use another text color to identify that there is a conflict between candidates in playing the game (play mode).

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

Step: 3

blur-text-image

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

What is your opinion?

Answered: 1 week ago

Question

=+13.4. 1 Relate the result in Problem 13.3 to Theorem 5.1(ii).

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago

Question

a. How do you think these stereotypes developed?

Answered: 1 week ago

Question

a. How many different groups were represented?

Answered: 1 week ago