Represent a the scoring of a hockey game. The two teams -playing are "home" and "away".
-
- HockeyGame
- ()
-
-
-
- diff --git a/.gitignore b/.gitignore index 52fa9ef..d751c20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ .idea .direnv +node_modules +package.json +package-lock.json diff --git a/docs/HockeyGame.html b/docs/HockeyGame.html deleted file mode 100644 index 299cbb2..0000000 --- a/docs/HockeyGame.html +++ /dev/null @@ -1,259 +0,0 @@ - - -
-Represent a the scoring of a hockey game. The two teams -playing are "home" and "away".
-
- HockeyGame
- ()
-
-
-
- In statistics, infinity is set to 30.
-
-
- 30
-
-
-
- Computes the average of the list. If the list is empty, the -function returns NaN
-
- lst
-
-
-
-
- | - | -
- Represent a the scoring of a hockey game. The two teams -playing are "home" and "away". - |
-
|
-
-
-
- f
+
+
+
+ Represent a the scoring of a hockey game. The two teams +playing are "home" and "away". + +new HockeyGame()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Instance Members
+
+
+
- average
-
+
+
+
+
+
+ ▸
+ home
+
+
+
+ Score of the "home" team + +home
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ away
+
+
+
+ Score of the "away" team + +away
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ homeTeamScores()
+
+
+
+ Call this method when home team scores. It will +increase home team score by 1 point. + +homeTeamScores()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ awayTeamScores()
+
+
+
+ Call this method when away team scores. It will +increase home team score by 1 point. + +awayTeamScores()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
-
- Computes the average of the list. If the list is empty, the -function returns NaN - |
-
+ + HockeyPlayer ++ + + + + +Class representing a simple hockey player. The hockey player +has a name (first and last) and a date of birth. + + + + + + + + + + + + + +Parameters
+
+
+
-
-
+
+
- f
+ firstName
+
+ (String)
+ the first name of the player
+
+
+
+
+
+ lastName
+
+ (String)
+ the last name of the player
+
+
+
+
+
+ dateOfBirth
+
+ (Date)
+ the birth date of the player
+
+ Instance Members
+
+
+
- isValidIsbn
-
+
+
+
+
+
+ ▸
+ firstName
+
+
+
+ the fist name of the player. + +firstName
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ lastName
+
+
+
+ the last name of the player. + +lastName
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ dateOfBirth
+
+
+
+ the date of birth of the player. + +dateOfBirth
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ name
+
+
+
+ the full name of the player. + +name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ currentAge()
+
+
+
+ Returns the current age of the player in years. + +currentAge()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
-
- Validate is the input string is a valid ISBN https://en.wikipedia.org/wiki/ISBN - |
-
|
-
-
-
- f
-
+
- isValidIsbn10
- |
-
- Validate is the input string is a valid 10 digits ISBN as defined
+
+
+
+
+
+
+
+
+ Validate is the input string is a valid 13 digits ISBN as defined
in https://en.wikipedia.org/wiki/ISBN |
-
|
-
-
- f
-
- isValidIsbn13
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ str
- (String)
+ a text we want to test if it is a real isbn
+
|
-
- Validate is the input string is a valid 13 digits ISBN as defined + + Returns
+ boolean:
+ true/false depending is str is a valid 13 digits ISBN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + isValidIsbn10 ++ + +Validate is the input string is a valid 10 digits ISBN as defined in https://en.wikipedia.org/wiki/ISBN - - |
-
| - | -
- Computes the standard deviation of the list. If the list is empty, the + + Returns
+ boolean:
+ true/false depending is str is a valid 10 digits ISBN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + isValidIsbn ++ + +Validate is the input string is a valid ISBN https://en.wikipedia.org/wiki/ISBN + + + + + + + + + + + + + +Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+ str
+
+ (String)
+ a text we want to test if it is a real isbn
+
+ Returns
+ boolean:
+ true/false depending is str is a valid isbn
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + INFINITY ++ + +In statistics, infinity is set to 30. + +INFINITY
+
+ + Type: + number + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + average ++ + +Computes the average of the list. If the list is empty, the function returns NaN - - |
-
any:
+ the average of the list.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Computes the standard deviation of the list. If the list is empty, the +function returns NaN
+ + + + + + + + + + + + + +any:
+ the standard deviation of the list.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Validate is the input string is a valid ISBN https://en.wikipedia.org/wiki/ISBN
-Validate is the input string is a valid 10 digits ISBN as defined -in https://en.wikipedia.org/wiki/ISBN
-Validate is the input string is a valid 13 digits ISBN as defined -in https://en.wikipedia.org/wiki/ISBN
-Computes the standard deviation of the list. If the list is empty, the -function returns NaN
-
- lst
-
-
-
-
-