Date-o fun remover: a solver for the hit online game date-o. Made in collaboration with Finn McKibbin. Thank you to this blog post for the Svelte and Wasm setup.
Go to the website... or run it locally in your terminal:
- Download Microsoft C++ Build Tools.
- Install Rust.
- Install CLang and macOS Development Dependencies.
xcode-select --install
- Install Rust.
- Install a C compiler, depending on the distro.
- Install Rust.
git clone https://github.com/Ashwagandhae/dateo-fun-remover.git
cd dateo-fun-remover
# we cd into solver to ignore the web app
cd solver
Will calculate goal & numbers from the date, based the source code.
cargo run --release
Usage:
cargo run --release -- [OPTIONS]
Options:
-n, --nums <NUMS> Given numbers (prioritized over date generated numbers)
-g, --goal <GOAL> Goal number (prioritized over date generated numbers)
-f, --full-date <FULL_DATE> Full date to use for generating numbers
-d, --day <DAY> Day of month to use for generating numbers
-m, --month <MONTH> Month of year to use for generating numbers
-y, --year <YEAR> Year to use for generating numbers
-h, --help Print help
-V, --version Print version
Examples:
You can input the goal number and the numbers to use...
cargo run --release -- --goal 1 --numbers "1 2 3 4 5"
cargo run --release -- -g 1 -n "1 2 3 4 5"
...or you can input the date in the format YYYY-MM-DD
to calculate them.
cargo run --release -- --date 2021-10-01
cargo run --release -- -d 2021-10-01
...or you can specify month, day, and year, and let today's date fill in the rest.
# specify month, day, and year
cargo run --release -- --month 10 --day 1 --year 2021
cargo run --release -- -m 10 -d 1 -y 2021
# specify only day
cargo run --release -- --day 1
cargo run --release -- -d 1