@AshaRajagopal/

Sports Teams

Python

No description

fork
loading
Files
  • main.py
  • league.py
  • player.py
  • team.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import random
from player import Player
from team import Team
from league import Conference
def main():
  teams = []
  t1 = Team("Giants", "Blue", "East", player_list = [])
  
  gp1 = Player("Corey Coleman","5'11", "78")
  gp2 = Player("Evan Engram", "6'3", "14")
  gp3 = Player("Odell Beckham", "5'11", "87")
   
  t2 = Team("Packers", "Green", "North", player_list = [])
  
  pp1 = Player("Aaron Jones", "5'10", "67")
  pp2 = Player("Davante Adams", "6'1","57")
  pp3 = Player("Jimmy Graham", "6'7", "54")

  t3 = Team("Bears", "Orange", "North", player_list = [])
  
  bp1 = Player("Mitchell Trubisky", "6'2", "45")
  bp2 = Player("Jordan Howard", "6'1", "12")
  bp3 = Player("Allen Robinson", "6'3", "45")

  t4 = Team("Rams", "Blue", "West", player_list = [])

  rp1 = Player("Todd Gurley", "6'1", "92")
  rp2 = Player("Jared Goff", "6'4", "88")
  rp3 = Player("Brandin Cooks", "5'10", "84")

  t5 = Team("Cardinals", "Red", "West", player_list = [])

  cp1 = Player("Josh Rosen", "6'4", "82" )
  cp2 = Player("David Johnson", "6'1", "79")
  cp3 = Player("Patrick Peterson", "6'1", "86")
  
  nfc = Conference("NFC", teams) 

  t1.add_player(gp1)
  t1.add_player(gp2)
  t1.add_player(gp3)

  t2.add_player(pp1)
  t2.add_player(pp2)
  t2.add_player(pp3)
  
  t3.add_player(bp1)
  t3.add_player(bp2)
  t3.add_player(bp3)
  
  t4.add_player(rp1)
  t4.add_player(rp2)
  t4.add_player(rp3)
  
  t5.add_player(cp1)
  t5.add_player(cp2)
  t5.add_player(cp3)
  
 
  nfc.add_team(t1)
  nfc.add_team(t2)
  nfc.add_team(t3)
  nfc.add_team(t4)
  nfc.add_team(t5)
  
  t1.set_standing(0)
  t2.set_standing(0)
  t3.set_standing(0)
  t4.set_standing(0)
  t5.set_standing(0)
  

 
  print(nfc)



main()