Giter Site home page Giter Site logo

rami-sabbagh / prolog-akari Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 518 KB

A solution finder for the puzzle game known as Light-Up/Akari written in Prolog using SWI-Prolog

TypeScript 1.63% Prolog 98.36% Gnuplot 0.01%
akari backtracking prolog swi-prolog swiprolog

prolog-akari's Introduction

Light-Up / Akari Puzzle Solver

A solution finder for the puzzle game known as Light-Up/Akari written in Prolog using SWI-Prolog.

Screenshots

Load a puzzle

loading a puzzle with prolog

Solve a puzzle

solving a puzzle with prolog

Searching for solution with backtrack

backtrack-animation

All tests passed

all unit tests passed

Features

  • Made with Test Driven Development.
  • Uses backtracking only when no action can be taken deterministically.
  • Written in a modular fashion.
  • Can be run in an headless mode.
  • Pretty colored output for CLI usage.
  • Uses a test suit of ~2,760 puzzles (of sizes 8x8 and 20x20).
  • Works with non-squared puzzles.
  • Supports 0,1,2,3 and 4 numbered walls.

Benchmarks

  • Solves (all?) 8x8 puzzles under 3 seconds.
  • Can solve many 20x20 levels under 3 seconds.
  • Some hard 20x20 levels can take up to 10 minutes to be solved.
  • The whole test suit of 2,760 puzzles takes ~20 minutes to run with no failures.

Contributors

prolog-akari's People

Contributors

maias-alakramy avatar rami-sabbagh avatar yamanqd avatar

Stargazers

 avatar  avatar  avatar  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.