Represent a the scoring of a hockey game. The two teams playing are "home" and "away".
Score of the "home" team
Score of the "away" team
Call this method when home team scores. It will increase home team score by 1 point.
Call this method when away team scores. It will increase home team score by 1 point.
Class representing a simple hockey player. The hockey player has a name (first and last) and a date of birth.
(String)
the first name of the player
(String)
the last name of the player
(Date)
the birth date of the player
Class representing a simple hockey player with some statistics attached to it.
(String)
the first name of the player
(String)
the last name of the player
(Date)
the birth date of the player
the fist name of the player.
the last name of the player.
the date of birth of the player.
Returns the current age of the player in years.
the number of points scored by game. This method requires the knowledge of numberOfPoints and numberOfPlayedGames to return a meaningful result.
the number of points scored by playoff game. This method requires the knowledge of numberOfPointsDuringPlayoffGames and numberOfPlayedPlayoffGames to return a meaningful result.
the number of goals scored by game. This method requires the knowledge of numberOfGoals and numberOfPlayedGames to return a meaningful result.
Validate is the input string is a valid 13 digits ISBN as defined in https://en.wikipedia.org/wiki/ISBN
(String)
a text we want to test if it is a real isbn
boolean:
true/false depending is str is a valid 13 digits ISBN
Validate is the input string is a valid 10 digits ISBN as defined in https://en.wikipedia.org/wiki/ISBN
(String)
a text we want to test if it is a real isbn
boolean:
true/false depending is str is a valid 10 digits ISBN
Validate is the input string is a valid ISBN https://en.wikipedia.org/wiki/ISBN
(String)
a text we want to test if it is a real isbn
boolean:
true/false depending is str is a valid isbn
In statistics, infinity is set to 30.
Type: number
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.
Classe qui représente un point sur un plan cartésien. Le point est donc représenté par deux coordonnées x et y.
(any)
(any)
Classe qui représente un cercle. Le cercle est définit par un Point et un rayon.
Par défaut, le cercle est noir. Mais le cercle peut changer de couleur.
(Point)
le point au centre du cercle
(number)
le rayon du cercle
(number)
l'id unique du cercle. C'est au
créateur de l'instance de s'assurer de l'unicité
de l'id.
Dessine tous les cercles dans un svg. Cette fonction nettoye le svg avant d'ajouter les cercles.
(any)
{HTMLElement} un element svg
(any)
{Circle[]} Les cercles à dessiner
(any)
{HTMLElement} un element tbody
(any)
{Circle[]} Les cercles
(any
= undefined)
Argument optionnel qui doit être une fonction
qui prend en paramêtre un Point et retourne un String qui
représente le point.
(any
= undefined)
Argument optionnel qui doit être une fonction
qui sera appelée lorsque la flèche pointant vers le haut
sera cliquée. L'id du cercle sera passé en argument de
la fonction.
(any
= undefined)
Argument optionnel qui doit être une fonction
qui sera appelée lorsque la flèche pointant vers le bas
sera cliquée. L'id du cercle sera passé en argument de
la fonction.
(any
= undefined)
Argument optionnel qui doit être une fonction
qui sera appelée lorsque la flèche pointant vers la gauche
sera cliquée. L'id du cercle sera passé en argument de
la fonction.
(any
= undefined)
Argument optionnel qui doit être une fonction
qui sera appelée lorsque la flèche pointant vers la droite
sera cliquée. L'id du cercle sera passé en argument de
la fonction.
(any
= undefined)
Argument optionnel qui doit être une fonction
qui sera appelée lorsque l'icone peinture
sera cliquée. L'id du cercle sera passé en argument de
la fonction.
Retourne une couleur de gris aléatoire à partir d'un nombre entier.
(any)
{number} (entier) qui sera utilisé comme "seed".
string:
une couleur hexadécimale