Skip to content

CLI based Eight Puzzle & LightsOut Solver, which also generates svg files of the solution path and game tree for both the games

Notifications You must be signed in to change notification settings

rachit901109/CLI-Board-Game-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1. Eight-puzzle-problem

Commands to run on the terminal:

  1. To solve puzzle:
cd eight_puzzle
g++ -g eight_puzzle.cpp -fsanitize=address -o solve.exe
./solve.exe

Solution path:

Screenshot 2023-08-11 011824

  1. To generate game tree:
g++ -g game_tree.cpp -fsanitize=address -o game_tree.exe
./game_tree.exe

Game Tree for Depth 5:

Screenshot 2023-08-11 185529

2. Lights Out Puzzle

Commands to run on the terminal:

  1. To solve puzzle:
cd lightsout
g++ -g lightsout.cpp -o solve.exe
./solve.exe

Solution Sequence:

Screenshot 2024-02-16 034652

  1. To generate game tree:
g++ -g game_tree.cpp -o game_tree.exe
./game_tree.exe

Game Tree (All possible moves for a 3x3 grid):

Screenshot 2024-02-16 034729

About

CLI based Eight Puzzle & LightsOut Solver, which also generates svg files of the solution path and game tree for both the games

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages