1 unstable release

Uses old Rust 2015

0.4.0 Mar 19, 2017

#13 in #sliding

Download history 4/week @ 2024-09-23 21/week @ 2024-09-30 30/week @ 2024-12-02 32/week @ 2024-12-09

62 downloads per month

MIT license

4.5MB
484 lines

slider

A slider puzzle written in Rust using the Piston library

Build Status Clippy Linting Result

How to configure

  • Check out src/settings.rs
  • You can customize the image path
    • The image needs to be present in the assets folder
  • If no image is found, it will default to a gradient of colors
  • You can also customize various sizes

Build steps

With high resolution pigtures, debug is very slow cargo run --release

How to play

  • Arrows to move tile
  • Space to shuffle

alt tag

TODO

  • unit tests
  • get rid of global state (mostly from settings.rs)
  • settings: make configurable (size, color, image or not, ...)
  • scoring mechanisms

Notes

I am new to rust. Feel free to leave feedback on the code. (I now I must be missing lots of opportunities for using idiomatic constructions)

Dependencies

~7MB
~134K SLoC