Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
/ brackets Public archive

Brackets simulates the progression of a generic tournament bracket.

License

Notifications You must be signed in to change notification settings

devkevbot/brackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brackets

Brackets simulates the progression of a generic tournament bracket.

Basic concepts

  • A bracket is created using a specified positive number of players.

  • The bracket progresses players through a series of rounds, each of which is composed of games.

  • A game is a competitive simulation between a pair of players.

  • The winning player from each game is carried forward to the next round; the process repeats until a single player remains.

Round progression

An example from a generic Round x to Round x + 1 is given here:

graph TD;

  A((Round 'x' player pool))--Create round -->B[Round 'x'];
  B-- Create game -->C[Game 1]
  B-- Create game -->D[Game 2]
  B-- Create game -->E[Game N]
  C-- Simulate game -->F[Winner]
  D-- Simulate game -->G[Winner]
  E-- Simulate game -->H[Winner]

  F-->I((Round 'x+1' player pool))
  G-->I
  H-->I

  1. For a given round, a pool of players is provided as input.

  2. The round logic will form games between two players.

  3. Each game is then simulated to determine a winner between each pair of players.

  4. The winner(s) for the current round are then provided as the pool of players to the next round, if another round is needed.

Limitations

  • The initial number of players supplied to the bracket must be a positive power of 2.
  • Only two players can play in a match.

About

Brackets simulates the progression of a generic tournament bracket.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages