8-Puzzle Game!
About
The classic 8-Puzzle Game. Implemented in C, using raylib.
HOW TO PLAY
- Select a mode (using the mouse): either solve the puzzle yourself, or let the computer do it in the minumum number of moves.
- Give initial puzzle. Press number-keys 1-8 for the corresponding numbers and the SPACE bar for the blank tile. The puzzle is filled row-to-row from left to right (see screenshots).
- If you select the manual mode, using the arrow keys, you should try to solve the puzzle, reaching the goal state showed on the screen. EXAMPLE: Pressing the UP arrow key, will move the tile below the blank one, upwards.
- If you select the A.I. mode, press ENTER to generate the next move.
In case of an unsolvable initial puzzle, the game terminates.
If you want to play again, you should refresh the page.
The game was initialy implemented for Linux, hence it has the "EXIT" button, which, in Linux, would close the game's window.
More details about the project and the source code, available at my GitHub. (https://github.com/sdi2100180/8-Puzzle-Game-GUI)