GithubHelp home page GithubHelp logo

sweepstake's Introduction

Sweepstake

What is it?

A quickly cobbled script to assign sweepstake teams for the 2018 World Cup.

Get started…

Step 1:
$ ruby sweepstake.rb

Step 2:
Enter the names of the people taking part in your sweepstake.

e.g Foz, Bob, Avos, Stavos, Mr Brown, Uncle Trev

Step 3:
Wait for the output and share with the rest of your sweepstake participants.

Example output:

  • Player (number of teams assigned): team names

$ ruby sweepstake.rb

Who will be in your sweepstake? (names should be comma separated e.g: Pete, Rob, Kylie)

Foz, Bob, Avos, Stavros, Mr Brown, Uncle Trev

  • Foz(6): Poland, Croatia, France, Serbia, Iceland, England
  • Bob(5): Morocco, Spain, Australia, Japan, Costa Rica
  • Avos(5): Egypt, Colombia, Mexico, Denmark, Tunisia
  • Stavros(5): Nigeria, Portugal, Sweden, Argentina, Uruguay
  • Mr Brown(5): Peru, Saudi Arabia, South Korea, Panama, Russia
  • Uncle Trev(6): Iran, Germany, Switzerland, Belgium, Brazil, Senegal

To split the teams into Top and Bottom teams

They were done by fifa ranking on 07 June 2018 ( ref: https://www.fifa.com/fifa-world-ranking/ranking-table/men/index.html )

Top teams

$ ruby sweepstake1.rb

Who will be in your sweepstake? (names should be comma separated e.g: Pete, Rob, Kylie)

Foz, Bob, Avos, Stavros, Mr Brown, Uncle Trev

  • Foz(3): Argentina, Colombia, England
  • Bob(2): Germany, Mexico
  • Avos(3): Spain, Denmark, Uruguay
  • Stavros(3): Portugal, Croatia, Switzerland
  • Mr Brown(2): Brazil, France
  • Uncle Trev(3): Belgium, Peru, Poland

Bottom teams

$ ruby sweepstake2.rb

Who will be in your sweepstake? (names should be comma separated e.g: Pete, Rob, Kylie)

Foz, Bob, Avos, Stavros, Mr Brown, Uncle Trev

  • Foz(2): Costa Rica, Japan
  • Bob(2): Nigeria, Serbia
  • Avos(3): Saudi Arabia, Sweden, South Korea
  • Stavros(3): Senegal, Panama, Morocco
  • Mr Brown(3): Australia, Egypt, Russia
  • Uncle Trev(3): Iceland, Iran, Tunisia

sweepstake's People

Contributors

drkenho avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.