QB64 Phoenix Edition
8 Queens Puzzle - Place 8 queens on board without conflict - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Prolific Programmers (https://staging.qb64phoenix.com/forumdisplay.php?fid=26)
+---- Forum: Dav (https://staging.qb64phoenix.com/forumdisplay.php?fid=34)
+---- Thread: 8 Queens Puzzle - Place 8 queens on board without conflict (/showthread.php?tid=283)



8 Queens Puzzle - Place 8 queens on board without conflict - Dav - 04-30-2022

8 Queens Puzzle is a QB64 version of a famous chess board puzzle which is called The 8 Queens Puzzle.  The goal is to place 8 Queens on a chess board so that none of the Queens are in conflict with each other.  It's not that easy and takes some thinking.  Use the mouse, click on a Queen and drag it onto the chess board.  If any Queens are in conflict they will turn red.  Place all 8 Queens on the board without any of them being red.

This is an updated version to the one I posted at the old forum.  This one has all the image files in the code, and uses SOUND instead of wav files for sound effects, so all you need now is the one BAS code to compile & play the program.

- Dav


.bas   8queens-v2b.bas (Size: 67.46 KB / Downloads: 13)