Skip to content
Slider - A tile sliding game implemented in Rust.
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
readme.md

readme.md

Slider

A "simple" sliding puzzle game. Written in Rust as an exploration on how to build a tiling game engine.

Version 0.5: Minimum Viable Product

This tagged version does not use OpenGL, Piston, or any other graphics library. It is an implementation of a slider puzzle, and includes the following features:

  1. Only allows a 4x4 puzzle grid.
  2. Takes an optional seed value (any usize value) using the --seed argument from the command line to always produce the same shuffle pattern.
  3. Takes an optional interation value (any positive usize value) using the --iterations argument from the command line to determine the number of moves made by the shuffle routine.
  4. If the optional seed value is not supplied, the random number generator used to power the shuffle algorithm is supplied from a random system source.
  5. If the iteration value is not supplied, the shuffle algorithm defaults to ten shuffle moves.
  6. A parser is implemented to take keyboard input to either move a tile (implemented as a number displayed in a grid) or the command quit to quit the game.
  7. The number of legal moves is tracked and read out at the end of the game (quit or win).
You can’t perform that action at this time.