Giter Club home page Giter Club logo

mu-puzzle's People

Watchers

 avatar

mu-puzzle's Issues

Interactive in-browser app

Provide an implementation that creates one node in the browser, and then you click on a node to do "step" on that node. It'd be cool to see the graph grow.

  • interactive window could also have a "advance" button that calls step on the next shortest vertex

Provide an implementation of the rules

For each rule, the implementation should take a string and output all strings that can be created by applications of the rule. The output can be an empty iterable.

Tests should be written for each rule.

Generate a graph that represents the problem space

The problem can be thought of generating a directed graph: a node is a (in-system) string, an edge is a rule application. Solving the problem is equivalent to starting from the given start string, and applying rules to generate the graph until a node containing the ending string is reached.

The logic implemented here should take a start string, an end string, and a ruleset, and on each iteration:

  • Find the node closest to the start
  • Generate all nodes reachable from the current node
  • For all new nodes, add them to the graph. For all existing nodes, add an edge to that node.
  • If a node is generated that matches the end string, exit the loop
  • On interruption (e.g. by SIGINT or timeout) or on exit, return the graph.

Testing: run the loop for a small number of iterations, manually inspect output. Can codify these into unit test cases, though it might not be worthwhile.

Tech debt

  • unit tests that assert solver behavior for a single step.
  • type cleanups

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.