Giter Site home page Giter Site logo

ku's People

Contributors

aehmlo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ku's Issues

Re-enable higher orders

03fdeda changed the backing storage of PossibilitySet to use a u64 and bitwise operations. This limits users to a maximum order of 8 (the square root of 64). The backing store can be changed to a u128 to allow a maximum order of 11, but this isn't much better (and, unless done very carefully, can result in some pretty major performance regressions). u256 would only allow a maximum order of 16 (O(n2) is somewhat unwieldy).

Ideally, I'd like to use u64 as a backing until u128 becomes necessary and then downgrade to heap allocation (probably just a Vec) thereafter to enable arbitrary orders at the cost of performance. I think the only realistic way to implement this right now is probably something like typenum.

Fix CI configuration

This may require some finagling with rustfmt, or simply allowing nightly to fail if it won’t be tamed.

Give PossibilityMap value knowledge

As it stands, the possibility map has no idea whether there's no freedom because an element exists there or because the position is over-constrained. Giving it this knowledge would let us short-circuit on otherwise expensive recursion. This may also be related to the hang encountered in gen::grid.

Revisit lifetimes

There's at least one location (it's marked) which should be revisited when NLL lands, but a review of all lifetime/reference-related code might not be a bad idea.

Prettify noscript

It exists now, but it's not very pretty. This can be easily fixed, but I don't really want to do it right now.

Make color palettes shared

Move color palettes and color manipulation into shared code, and give it a prettier structure. Since this is getting into the area of metadata, it may be a good idea to use serde to let us specify these things as JSON/TOML so that it's parseable by other things.

Implement (de)serialization

It is most definitely overkill to use serde for this, as we only need to support unsigned integer types. This will probably consist of FromStr and fmt::Display only.

Add hexadecimal puzzle support

This allows us to use single-character representations for everything in a puzzle of order 4.

In order for this to be considered complete, we need:

  • impl fmt::UpperHex for Sudoku
  • Improvements to FromStr (#15)

Implement (de)serialization in higher dimensions

As of now, FromStr is limited to two dimensions, since I haven't thought of a good 2D representation for a higher-order puzzle. I'd be happy with just adding 3D, without being concerned about higher dimensions than that.

Once a format's specced out, FromStr and fmt::Display should be implemented as inverse functions (composable).

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.