Trees | Indices | Help |
|
---|
|
object --+ | Match
The class Match
represents match results in a football
match statistics program. A match is played between teams from two clubs:
a home club and an away club. Goals scored by either team can be added to
the match object with the method add_goal
. The class is
expected to be used so that a match object is initially created as a
real-life match starts and goals are added incrementally as the match
progresses.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructs a match between teams of the given clubs, with no goals scored (yet).
|
Returns the club who hosts the match.
|
Returns the club who is visiting the home club to play the match.
|
Returns the number of goals scored by the home team.
|
Returns the number of goals scored by the away team.
|
Returns the goal difference of the match. If the home team won, a positive integer indicating the win margin is returned. Similarly, a negative integer indicates an away win. A tied match has a goal difference of zero.
|
Returns the total number of goals scored by the two teams.
|
Returns a boolean value indicating if the home team won.
|
Returns a boolean value indicating if the away team won.
|
Returns a boolean value indicating if the match ended in a draw.
|
Returns a boolean value indicating if the match had a higher number of goals than another given match.
See Also: #getTotalGoals() |
Returns the name of the stadium at which the game is played. That is, returns the home club's home stadium.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 15 13:21:27 2011 | http://epydoc.sourceforge.net |