add my player class

This commit is contained in:
starnakin 2024-01-15 13:37:05 +01:00
parent 55b2cf053d
commit fa97abb825
2 changed files with 4 additions and 1 deletions

View File

@ -5,3 +5,5 @@ class MyPlayer extends Player
{
}
export {MyPlayer }

View File

@ -1,11 +1,12 @@
class Player
{
constructor(id, pos, nb_goal)
constructor(id, pos, nb_goal, game)
{
this.id = id;
this.pos = pos;
this.nb_goal = nb_goal;
this.game = game;
}
}