#4x4 Queen problem
15 messages ยท Page 1 of 1 (latest)
โ This post has been reserved for your question.
Hey @alpine crystal! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
You have the while loop checking whether row is less than 4. Giving the output result of 4 rows only
Tried changing it but still the same ๐
What are you trying
This schould be the expected output
No what are you trying to do
Trying to place 4 queens on a 4x4 board without them hitting each others
Why not use random?
Would like to but backtracking is a must
What do you mean by backtracking?
๐ค Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
๐ค Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
If the code hits a dead end, then it should go back one step and try the other possibilities until there is none left
I still have no idea what you are trying