Skip to content
Classical Conversations Board Slam math game calculator
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
.watchr
Cargo.lock
Cargo.toml
README.md

README.md

Boardslam in Rust

This is a port of my boardslam.rb script to Rust.

Explanation here: seven1m.sdf.org/experiments/boardslam.cgi

Build

  1. Install Rust

  2. Run cargo build --release

Usage

target/release/boardslam 1 2 3

1   + 2^0 - 3^0 = 1
1   + 2   - 3^0 = 2
1   + 2^0 + 3^0 = 3
1   + 2   + 3^0 = 4
1   + 2^0 + 3   = 5
1   + 2   + 3   = 6
2^2 + 3   * 1   = 7
1   + 2^2 + 3   = 8
1   + 3^2 - 2^0 = 9
1   + 2^3 + 3^0 = 10
1   + 2^0 + 3^2 = 11
1   + 2   + 3^2 = 12
2^2 + 3^2 * 1   = 13
1   + 2^2 + 3^2 = 14
1   + 2^2 * 3   = 15
2^3 + 3^2 - 1   = 16
2^3 + 3^2 * 1   = 17
1   + 2^3 + 3^2 = 18
3^3 - 2^3 * 1   = 19
1   + 3^3 - 2^3 = 20
2^3 - 1   * 3   = 21
3^3 - 1   - 2^2 = 22
3^3 - 2^2 * 1   = 23
1   + 3^3 - 2^2 = 24
3^3 - 1   - 2^0 = 25
1   + 3^3 - 2   = 26
1   + 3^3 - 2^0 = 27
2   + 3^3 - 1   = 28
1   + 2^0 + 3^3 = 29
1   + 2   + 3^3 = 30
2^2 + 3^3 * 1   = 31
1   + 2^2 + 3^3 = 32
2^3 + 3^3 - 1   = 34
2^3 + 3^3 * 1   = 35
1   + 2^3 + 3^3 = 36

missing: 33

License: MIT

You can’t perform that action at this time.