https://github.com/pierrechevalier83/slider
A Slider Puzzle implemented in rust
https://github.com/pierrechevalier83/slider
graphics piston rust slider-puzzle
Last synced: 9 months ago
JSON representation
A Slider Puzzle implemented in rust
- Host: GitHub
- URL: https://github.com/pierrechevalier83/slider
- Owner: pierrechevalier83
- Created: 2016-03-23T01:12:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T08:59:23.000Z (almost 9 years ago)
- Last Synced: 2025-02-09T13:28:44.187Z (11 months ago)
- Topics: graphics, piston, rust, slider-puzzle
- Language: Rust
- Size: 4 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slider
A slider puzzle written in Rust using the Piston library
[](https://travis-ci.org/pierrechevalier83/slider) [](https://clippy.bashy.io/github/pierrechevalier83/slider/master/log)
## 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

## 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)