A generator and recursive solver for the Countdown Numbers game
Go to file
mappu 312ebeeefd doc: add README.md 2024-05-19 18:15:09 +12:00
README.md doc: add README.md 2024-05-19 18:15:09 +12:00
countdown.sh initial commit 2024-05-19 18:10:39 +12:00
solve.sh initial commit 2024-05-19 18:10:39 +12:00

README.md

countdown-bash

A generator and recursive solver for the Countdown Numbers game.

Written in bash on Termux during a train ride. Not guaranteed to be fast, accurate, or provide the simplest solution.

Usage

$ ./countdown.sh 
Target: 854
Numbers: 10 50 4 9 7 1

$ ./solve.sh 854 10 50 4 9 7 1
won
855 - 1 = 854
57 x 15 = 855
9 - -6 = 15
50 + 7 = 57
4 - 10 = -6