Skip to content

RPG-coder/8-puzzle-and-15-puzzle-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👾 8-puzzle-and-15-puzzle-Game 👾

Using Backtracking algorithm and OpenCV + Python

Table of Content 🤖

8-puzzle and 15-puzzle Game using OpenCV/Python

This repository contains an 8-puzzle and 15-puzzle game.

This simple game comes with a elegant user interface and options using mouse & keyboard stokes. User has the ability to play either an 8 or a 15 puzzle game.

The Front-end GUI for this game is built by OpenCV (Computer Vision) and can be replaceable.

Core functionalities for game-space conditions and hinting system are included in puzzle.py.

Structure of the application

puzzle.py - Back-end | Code for game conditions and hinting system Game.py - Fornt-end | GUI using Open CV

Features : 💯

  • Generates only solveble puzzles
  • Comes with a Hint suggestion
  • Windows executable included in a dist folder

Demo: Wanna try and see how this game works??

Interested in working of the game? - Installation Procedure

Installation Dependency: Installing Miniconda

Setting up the Environment ⛺ 🌄 🌏 🌎 🌍

  • Open command prompt

  • Execute below command to setup a local environment:

    $ conda create -n puzzle -y # or environment name of your choice

  • Activate your environment:

    $ conda activate puzzle

  • Installing Application dependencies: Installing OpenCV-Python

    $ conda install opencv-python -y

Run the Game 💫

$python3 Game.py

Like the repo?? 🥰 💓 💜

In case you have taken a like for this repository, please do star or fork my repo. Your support will not only help me in improving recognition for this repository but also encourage me in developing and sharing more interesting projects and contents.

Likewise, Thank you for showing your appreciation to this repo.


Under GNU GPLv3 License