Code Monkey home page Code Monkey logo

nono's Introduction

nono

Nonogram hint dispenser

Currently nono is able to solve a fair number of puzzles. However there are still puzzles that are beyond its grasp.

I made up the entire terminology around the hints by myself and there's no documentation of it.

Getting started

You need Rust and Cargo to compile nono. Install them like this:

curl -sSf https://static.rust-lang.org/rustup.sh | sh

See the Rust and Cargo installation guide for details.

Build and locate the executable:

cargo build && target/debug/nono --help

Usage

nono reads puzzles from stdin.

nono < examples.txt

If you don't want to run all puzzles in a file, you can use sed do pick out a single line. For example the 4th line:

sed -n 4p examples.txt | nono

Themes

nono supports a few variations of its output format, a.k.a. themes.

unicode

This is the default theme. It gives you:

  • Human friendly renderings of puzzle states.
  • A trace of all passes that were computed.
  • A not-quite-as-human-friendly trace of all inferences that were made in each pass.

ascii

This theme is identical to the unicode theme except puzzle states are rendered using only ASCII characters. This is useful for terminals lacking unicode support.

brief

This theme gives you:

  • Puzzle states in the one-line format.
  • No trace of what passes were computed.
  • No trace of what inferences were made.

One-line format

See the included examples.txt for examples and run them through nono for interpretation.

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.