GithubHelp home page GithubHelp logo

water_sort_solver's Introduction

Solver for iOS Water Sort Puzzle game

You can find the game here

Usage:

usage: Solver for the WaterSortPuzzle iOS app
       [-h] -i INPUT_FILE [-v]

optional arguments:
  -h, --help      show this help
                  message and exit
  -i INPUT_FILE, --input-file INPUT_FILE
                  File name to read
                  puzzle from
  -v, --vertical  Input file tubes are
                  vertical

Example runs:

Vertical:

You can test the vertical example file with the following: ./main.py -v -i vertical_example.txt

Horizontal:

You can test the vertical example file with the following: ./main.py -i horizontal_example.txt

Input files:

The following puzzle can be represented by both horizontal and vertical input files:

Example input file

vertical_example.txt is an example of a vertical input file

horizontal_example.txt is an example of a horizontal input file

water_sort_solver's People

Contributors

pwablito avatar

Watchers

 avatar

water_sort_solver's Issues

GUI

Add GUI to make the input process easier. The GUI should also animate the pouring process between tubes

Fix Input Files

For some reason, the horizontal and vertical versions of input files result in different solutions. This is likely because of a newline parsing issue.

Input as json

A way to fix the input file spacing problem is to just input json files that are then read into tube structures. This should take the place of the current system.

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.