Giter Site home page Giter Site logo

tucil3_13520017's Introduction

15-puzzle

Penyelesaian Persoalan 15-Puzzle dengan Algoritma Branch and Bound

Description

This is a small project created in order to fulfill the requirements of IF2211 Algorithm Strategy course in Institut Teknologi Bandung (ITB) Academic Year of 2021/2022. This project was created using Python and some of its built-in library. This project is a solution to the 15-puzzle problem (can be extended to n^2-puzzle). The goal of this project is to find a solution to the 15-puzzle using the Branch and Bound algorithm.

Requirements

  • Python 3.9
  • Library tkinter
pip install tkinter

Compiling

Not necessary because Python is an interpreted language.

How to Use

  • open src folder in terminal and run this command
python main.py
  • Enter file name in text box (ex. solvable1.txt), then click solve button
  • If the puzzle is solvable, you'll see command (Up, Down, Left, Right) above the puzzle
  • Follow the command by clicking the right tile (if command is Up, click the upside tile of empty tile)
  • Those command will lead you to victory. So, enjoy the game!

Note: You can see available file in test folder

Author

Nama: Diky Restu Maulana
NIM: 13520017
Prodi: Teknik Informatika

tucil3_13520017's People

Contributors

dikyrest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.