Git Product home page Git Product logo

tournaments's Introduction

Tournaments

Software for planning and keeping score of tournaments in the spider format.

It was created as school project at MFF UK.

Live demo can be found at Github pages.

Overview

Tournaments is an app created for generating a tournament bracket in the spider format. It can handle teams from various sports and is fully interactive. It is hosted fully on the internet and the whole algorithm is executed on the client side.

It is created with JavaScript and mainly the React framework. The design is created with the Material UI.

Algorithm

The whole app is created with various components. They serve as a building blocks that are assembled and rendered with React.

Index.js

The main component serves as an entry point for the whole app. It targets a selected div element in the frontend facing HTML file and renders it's contents inside it.

It calls the Material wrapper component, which houses the Material theme hosted inside Theme.js, the toolbar, and CSSBaseline component for nicer looks.

Teams.js

This component handles most of the interaction with the user. It lets him add and remove team names. It renders the list of the teams through TeamList.js.

When the user is done with adding new teams, it passes the names to Bracket.js, which handles the creation of the bracket.

Bracket.js

Bracket houses the main logic of the app. When passed the team names, it creates filler team names (Winner of match #) and divides them into rounds. In case the number of selected teams is odd, bye rounds are positioned at the start of the bracket to fit the bracket format.

Input data

When choosing teams

  • A team name can be typed into the textfield with label Enter a team name. The name can be madeup of letters, numbers or symbols. Minimum length is 1 and the maximum is 20
  • When the name is chosen, it can be added to the list with the button labeled Add Team
  • Team name can be deleted with the trashcan button next to the name
  • Bracket can be created with the button labeled Create Tournament

Choosing winners

  • All matches are divided into the tournament spider bracket
  • Unplayed matches have no winner
  • Winner will be chosen after both scores are set
  • Score can be changed by clicking on the input field with the number (Scores can be between 0 and 1 000)

Conclusion

//TODO

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.