Skip to content

Software101DotNet/LeCompteEstBon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Le Compte Est Bon

The program is a solver (or solution finder) for the number game "Le Compte Est Bon" that is seen in the TV show "Des chiffres et des lettres"

The game originates from the French game show Des chiffres et des lettres ("Numbers and Letters"), on which Countdown is based. In the French version, the equivalent numbers segment is specifically known as "Le compte est bon", which translates to "The total is right" or "The count is good"—referring to exactly hitting the target for full points.

View Demo · Report Bug · Request Feature

About The Project

The program is a solver (or solution finder) for the number game "Le Compte Est Bon" that is seen in the TV shows known as Des chiffres et des lettres (France), Count Down and Cat’s Do Count Down (UK), Letters and Numbers (Australia). There may be other TV shows around the world, but the number game seems to be the same in all of them.

Give the program the target number (in the TV game this is a randomlly sellected number between 100 to 999) and six numbers that are randomly selected from the set 1,2,3,4,5,6,7,8,9,10,25,50,75,100 and the program will calculate every possible formula using the operators + - * / and parathasis ( ) with every combination of 1 to all siz number where the formual evaluates to the target number.

About The Implementation

This is the first implementation of the program, which uses the BODMAS rule, with the limitation that it can only find all the solutions that do not require parentheses in the formula. So it's ODMAS rules, with the B to be implemented in the following version.

An example, given the number set [9,7,2,4,9,25] and the target value of 667, This version will find the solutions such as 997+425=667, but it will not find the other solutions of the form ((94)-7)*(25-2)=667 as this requires parathasis.

The following implementation will also consider parathasis ( ) and will consequently find the complete set of possible solutions of a given number set to reach a given target number.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages