Skip to content

Ashwagandhae/dateo-fun-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dateo-fun-remover

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.

Usage

Go to the website... or run it locally in your terminal:

Prerequisites

Windows

  1. Download Microsoft C++ Build Tools.
  2. Install Rust.

MacOS

  1. Install CLang and macOS Development Dependencies.
xcode-select --install
  1. Install Rust.

Linux

  1. Install a C compiler, depending on the distro.
  2. Install Rust.

Usage in terminal

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

Running the solver

Will calculate goal & numbers from the date, based the source code.

cargo run --release

Running with custom numbers

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

About

A date-o solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published