Code Monkey home page Code Monkey logo

countdown-solver's Introduction

Countdown solver

This repo provides code to solve the two minigames in the british TV-show Countdown. The same rule set can e used in the comedy version "8 out of 10 cats does Countdown". To get started, run

python run_game.py -h

Numbers game

The numbers game consists of a player chosing to use 0-4 "high numbers" and the rest "small numbers" into a total of six numbers. The high numbers are drawn from the set [25, 50, 75, 100] and the small numbers are drawn from a set [1, 1, 2, 2, 3, ... , 9, 9, 10, 10], i.e. the numbers 1-10 with two copies of each. The six numbers are used together with the four basic arithmetic operations (+, -, *, /) to get as close to a target, in the range 100-999. You do not have to use all six numbers, each number may only be used once. The best player scores points; the correct answer is awarded ten, up to five away is awarded seven points and up to ten away is awarded five points.

To solve the numbers game, run run_game.py with numbers and target flags

Word game

The word game is presented as a choice where the contestants can request vowels or consonants one after each other until they hit nine letters. Then the goal is to form the longest word possible using the letters, you may onlt use each letter once.

To solve the word game, run run_game.py with the letters flag.

Analysis

Do any number combinations lack answers? What numbers are the hardest to find a solution? Analysis to much more will come...

countdown-solver's People

Contributors

ivarpersson avatar

Watchers

 avatar

countdown-solver's Issues

Dictionary is incomplete

The dictionary in the numbers game is not complete, several words are missing and all non standard form are missing (plural, past tense etc)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.