🎰

Tennis Tournament Simulator

Python435 lines· A console simulation of a four-player single-elimination tennis tournament. Players get random names, schools, and skill levels; match outcomes are…
Original project by @jpyces — view source on GitHub
Ready when you are
README· what to build

Tennis Tournament Simulator

A console simulation of a four-player single-elimination tennis tournament. Players get random names, schools, and skill levels; match outcomes are decided by skill plus random variation, and the champion and runner-up are announced.

Example

Program Starts from here
Player's info - Bracket 1, Round 1
Player 1
Name: Max Kenshin, School: Newport

Player 2
Name: Corey Roosevelt, School: Eastlake

Bracket Winner Name: Max Kenshin, Winning School Name: Newport, Winner Skill: 4.5, Wins: 1
Bracket Loser Name: Corey Roosevelt, Losing School Name: Eastlake, Loser Skill: 3, Losses: 1

-------------------------------------

Player's info - Bracket 2, Round 1
Player 3
Name: Evander Wong, School: Sammamish

Player 4
Name: Timothy Holyfield, School: Inglemore

Bracket Winner Name: Timothy Holyfield, Winning School Name: Inglemore, Winner Skill: 5.5, Wins: 1
...

#####################################

Player's info - Finals
...
Champion Name: Max Kenshin, Champion School: Newport, Champion Skill: 5.0
Runner Up Name: Timothy Holyfield, Running Up School: Inglemore, Runner Up Skill: 5.5

How to run on localhost

python main.py

Dependencies

Standard library only.

tennistournamentsim.py· Python 3.x
441 lines
Console· terminal