countdownsolver

command module
v0.0.0-...-d7dcab3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 8 Imported by: 0

README

CountdownSolver

Solve math problems presented in the TV game shows Countdown, Countdown Masters, 8 Out of 10 Cats Does Countdown, Letters and Numbers and Des chiffres et des lettres.

Rules:

  • Each number can only be used once,
  • Addition, subtraction and multiplication can be used,
  • Division can be used where the result is a whole number.

Issues:

  • Brakets have not been implemented.
    Given the numbers: 100, 50, 4, 1, 3, 10 and the target: 932,
    The program incorrectly ouputs: 100 - 4 - 3 × 10 + 1 = 931
    Instead of: 100 * 10 - ((50 + 1) * 4 / 3) = 932

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL