Git Product home page Git Product logo

habemus-populum's Introduction

habemus-populum

A simple quick 'n dirty script that helps you solve the "Habemus populum" game in the basque "Gaztea" radio station (broadcasted in the mornings show "Dida").

In the game, people calls by telephone and must guess a basque city or town name. Participants propose letters they think the town name may contain, and through hits and faults, they eventually find out the town name.

The script filters a list with the 677 basque towns. Letters it contains and those it doesn't contain will be promted by the script, and must be introduced comma separated. To specify multiple occurrences, write the letter n times (e.g. to state that it contains 3 "a" and one f you would write "aaa, f").

===

"Gaztea" irratiko goizeetako "Dida" saioan igortzen den "Habemus populum" lehiaketa irabazten laguntzen duen programa.

Lehiaketan, partehartzaileek telefonoz deitu eta euskal herri ezkutu baten izena asmatu behar dute. Horretarako, letrak botatzen dituzte, eta dituen eta ez dituenen arabera, herriaren izena asmatzen doaz.

Programa honek Euskal Herriko 677 herrien izenen zerrenda batean zehar bilatzen ditu erantzun posibleak. Herriak dituen eta ez dituen letrak programak berak eskatuko ditu, eta komaz bereizita idatzi behar dira. Baldintza horiek betetzen ez dituzten herriak baztertuak izango dira, erantzun posibleak erakutziz. Letra bat behin baino gehiagotan agertzen dela adierazteko, idatzi letra bera nahi adina aldiz (adibidez, herri batek 3 "a" eta "f" bakarra dituela adierazteko, idazti "aaa, f").

Usage

Requires node and npm installed. In the command line:

npm install
node index.js

Usage image

habemus-populum's People

Contributors

eneko89 avatar

Watchers

 avatar  avatar

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.