game: add: goal statistic

This commit is contained in:
2024-02-26 17:11:31 +01:00
committed by AdrienLSH
parent d961130de3
commit b9de0f3619
15 changed files with 335 additions and 82 deletions

View File

@ -9,12 +9,12 @@ class MyPlayer extends Player
* @param {Client} client
* @param {Game} game
* @param {Segment} rail
* @param {Number} nb_goal
* @param {[Number]} score
* @param {Number} position
*/
constructor(client, game, rail, nb_goal, position)
constructor(client, game, score, rail, position)
{
super(game, client.me.id, client.me.username, rail, nb_goal, position, true);
super(game, client.me.id, client.me.username, score, rail, position, true);
/**
* @type {Client}
*/