Eight-Queen Puzzle Simulator on GAMBAS

So you have written that new, must have program. Let us see it here.
Post Reply
ak2766
Posts: 15
Joined: Sunday 3rd April 2022 4:59am
Location: Melbourne, Australia

Eight-Queen Puzzle Simulator on GAMBAS

Post by ak2766 »

I taught myself GAMBAS over a weekend (previous VB 6 fan here and most likely showing my age - :oops: ).

Having never heard of the eight-queen puzzle, I was intrigued by the recursive method I spotted in the book Programming in Lua which is replicated on StackOverflow - https://stackoverflow.com/questions/486 ... th-edition. To get a visual of what was happening, I built a simulator which really helped. Here's a GIF of the program which is also hosted on Gitlab - https://gitlab.com/learning-gambas/eight-queen-puzzle for posterity:

UPDATE: Just thought I'd mention that I'm using GAMBAS 3.18.4 via PPA on Ubuntu 22.04.
Attachments
puzzle.gif
puzzle.gif (2.49 MiB) Viewed 5471 times
User avatar
Quincunxian
Posts: 173
Joined: Sunday 25th June 2017 12:14am
Location: Western Australia

Re: Eight-Queen Puzzle Simulator on GAMBAS

Post by Quincunxian »

For others (like me) who have never heard of the eight queen puzzle, here is a Wikipedia Link: Eight Queen Puzzle
Cheers - Quin.
I code therefore I am
Post Reply