Lowest price ever! Learn Generative AI for 48% less!
Get my discount
+ 7

[Challenge] SAFE THE QUEEN

Given a chess board and eight Queens: Create a program which put all Queens in a safe place and return a list of posible solutions. Challenge: Ask the user the column of the 1st Queen and the nunber of solutions to produce. Do not print during the evaluation. Create a function returning a collection of solutions. Note: A Queen may move in any direcction, back, forward, left, right or diagonal; and any number of squares.

3rd Jun 2018, 1:07 AM
Manuel Soto
Manuel Soto - avatar
6 Answers
3rd Jun 2018, 1:08 AM
Manuel Soto
Manuel Soto - avatar
+ 4
Please post this as a challenge, a code, or on your personal timeline bro. Q&A is not the place for coding challenges. :) Cheers.
3rd Jun 2018, 2:26 AM
Tony
Tony - avatar
+ 1
VcC the problem has several solutions. your code provides only one
4th Jun 2018, 2:04 PM
Manuel Soto
Manuel Soto - avatar
4th Jun 2018, 9:16 AM
VcC
VcC - avatar
5th Jun 2018, 2:55 AM
Manuel Soto
Manuel Soto - avatar
0
recursion
27th Apr 2022, 8:09 AM
Prakhar gond
Prakhar gond - avatar