cympfh / hare-and-hounds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hare-and-hounds

References

  1. wikipedia/Hare_games
  2. nintendo/Club House Games

Usage

Input Format

Text

.D...
D...R
.D...

(3x5 characters)

is for

. D-.-. .
 /|\|/|\
D-.-.-.-R
 \|/|\|/
. D . . .
  • D is a Hound Dog.
    • Dogs running from left to right.
  • R is a Rabbit (Hare).
    • The Rabbit wanna escape to left.
  • . is a just empty.

Solver

cargo run --release -- --next D < input
cargo run --release -- --next R < input

See --help for more details!

Hint...

Hare (Rabbit) can always win!

About


Languages

Language:Rust 100.0%