p24 0.1.0

A simple 24 puzzle solver.
Documentation
  • Coverage
  • 8.33%
    1 out of 12 items documented0 out of 7 items with examples
  • Size
  • Source code size: 21.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • shanziheng1721/p24
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • brianShan974

p24

My implementation of a 24 puzzle solver in rust. Currently, this solver stops when it finds the first solution, so it only finds 1 solution.

Installation

You can either clone the repo and run

cargo install --path .

inside the project directory, or run

cargo install p24

to install from crates.io.

Usage

In order to use this solver, please run

p24 <I1> <I2> <I3> <I4>

in the terminal, where <I1>, <I2>, <I3> and <I4> should be integers. This crate now uses i64 as the integer type, so please make sure that the inputs are valid i64s. The reason why this crate uses i64 instead of i128 is to avoid overflow when calculating the sum/product/difference/quotient between i64s, because all calculations are in fact done with i128s.