text: # DADSA - Assignment 1
  # Reece Benson
  
  from classes import Player as Player
  
  class Season():
      _app = None
      _j_data = None
      _name = None
      _players = { }
      _rounds = { }
      _settings = { }
  
      def __init__(self, _app, name, j_data):
          # Set our application as a variable
          self._app = _app
          
          # Set our Season JSON Data in a variable
          self._j_data = j_data
  
          # Debug
          if(self._app.debug):
              print("[LOAD]: Loaded Season '{0}'".format(name))
  
          # Set variables
          self._name = name
          self._settings = j_data['settings']
  
      def name(self):
          return self._name
  
      def settings(self):
          return self._settings
  
      def players(self):
          return self._players
  
      def add_player(self, name, gender):
          if(not gender in self.players()):
              self._players[gender] = [ ]
  
          # Append our Players to their specific gender category
          self._players[gender].append(Player.Player(name, gender, len(self.players()[gender])))
  
      def rounds(self):
          return self._rounds
  
      def set_rounds(self, rounds):
          self._rounds = rounds
  