OOP Football Score Simulator

An Object-Oriented Python project that simulates American football games. Each Team object tracks wins, losses, ties, and points, while games generate realistic scores (touchdowns, field goals, and PATs) and automatically update team records.

  • Python
  • OOP
  • Classes
  • Libraries

Features

  • Object-Oriented Design – Teams are modeled as Python classes with attributes (wins, losses, points) and methods for updating stats.
  • Game Simulation – Matches generate scores using touchdowns, field goals, and PATs with realistic probability.
  • Automatic Record Keeping – Each team’s record (wins–losses–ties) and points for/against update after every game.
  • Readable Outputs – Custom __str__ and __repr__ methods provide clear displays for debugging and results.
  • Randomized Scenarios – Uses Python’s random library to produce dynamic, varied outcomes across simulations.

Requirements

  • Python 3.x

How to Run

  • Clone this repository
git clone https://github.com/joeseverino/football-score-simulator/blob/main/football.py

Technologies Used