Git Product home page Git Product logo

wfsports's Introduction

wfsports: WeFunder Sports challenge

Start by running

$ wfsports start names.csv

This outputs a file called round1.csv. Each row of this file has the names of two players competing in this round. As the organizer, you get to add the name of the winner to each of the rows once the round is done. If the number of players isn't a power of two, there will be some players who get a free pass to go to the next round. They will show up in rows like Alice,Alice,Alice, meaning that Alice has played against her self and won.

After entering the winners in round1.csv, run

$ wfsports next round1.csv

That will make random pairs of winners from round 1 and output round2.csv in the same format as round1.csv. Once they play each other, you as the organizer get to add the winners' names as in round1, and repeat running wfsports next round2.csv and repeat the process until someone wins the whole tournament.

To display the players for round N on the projector, run this (on Mac):

$ wfsports show roundN.csv
$ open table.html

10 rounds of random pairing followed by selecting the top 32 players for

single elimination finals

Start by running the following:

$ for i in $(seq 10); do wfsports -outround=$i start names.csv; done
wrote round1.csv
wrote round2.csv
...
wrote round10.csv

Then play round 1 according to round1.csv, recording the winners to round1.csv. Then play round 2 according to round1.csv, recording the winners to round2.csv. ... up to round 10. Then run

wfsports startfinals

which will generate round11.csv. Play round 11, record the winners to round11.csv, then run

wfsports next round11.csv

and proceed as before for single elimination.

wfsports's People

Contributors

ijt avatar

Watchers

 avatar 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.