countdown-numbers-game: Solve problems from the number round of the Countdown game show

[ bsd3, math, program ] [ Propose Tags ] [ Report a vulnerability ]

Solver for the numbers round of the Countdown game show:

That is, given six numbers and a target number, find an arithmetical expression containing exactly those six numbers that yields the target number. The solver however is neither limited to a certain number of operands nor to a certain magnitude of numbers nor to uniqueness of the operands. Please note, that the solver also emits solutions where not all of the given operands are used.

Example:

$ countdown-numbers-solve 23 42 3 4 5 --result 777
(23*3+5)*42/4

The solver employs a brute-force search, but ensures that expressions are unique up to commutativity and associativity. It determines all solutions of a problem within seconds.

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0, 0.0.0.1
Dependencies base (>=4.5 && <5), non-empty (>=0.3.2 && <0.4), optparse-applicative (>=0.11 && <0.19), utility-ht (>=0.0.11 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann
Maintainer haskell@henning-thielemann.de
Category Math
Home page https://hub.darcs.net/thielema/countdown-numbers-game
Source repo this: darcs get https://hub.darcs.net/thielema/countdown-numbers-game --tag 0.0
head: darcs get https://hub.darcs.net/thielema/countdown-numbers-game
Uploaded by HenningThielemann at 2025-03-25T16:47:48Z
Distributions Stackage:0.0.0.1
Executables countdown-numbers-solve
Downloads 7 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2025-03-25 [all 1 reports]