#4x4 Queen problem

15 messages ยท Page 1 of 1 (latest)

shrewd shardBOT
#

โŒ› This post has been reserved for your question.

Hey @alpine crystal! Please use /close or the Close Post button 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.

wild crow
#

You have the while loop checking whether row is less than 4. Giving the output result of 4 rows only

alpine crystal
#

Tried changing it but still the same ๐Ÿ˜•

arctic halo
alpine crystal
#

This schould be the expected output

arctic halo
#

No what are you trying to do

alpine crystal
#

Trying to place 4 queens on a 4x4 board without them hitting each others

arctic halo
#

Why not use random?

alpine crystal
#

Would like to but backtracking is a must

arctic halo
#

What do you mean by backtracking?

shrewd shardBOT
#

๐Ÿ’ค 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.

shrewd shardBOT
#

๐Ÿ’ค 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.

alpine crystal
#

If the code hits a dead end, then it should go back one step and try the other possibilities until there is none left

arctic halo
#

I still have no idea what you are trying