This command-line application calculates the ranking table for a league based on match results.
This project is written in Go.
- Go 1.24 installed
- A UNIX-like environment (e.g., macOS or Linux)
go run main.goLions 3, Snakes 3
Tarantulas 1, FC Awesome 0
Lions 1, FC Awesome 1
Tarantulas 3, Snakes 1
Lions 4, Grouches 0For convenience, a precompiled binary (league-ranking) is included in this repository.
chmod +x league-ranking
./league-rankinggo testI included the compiled binary (league-ranking) in the repository for convenience only to simplify execution in macOS environments.
In general, I would not commit compiled binaries to version control — they are platform-specific, large, and not source-controlled. In a production project, this file would be ignored via .gitignore.