ultimate_tictactoe/player.js

36 lines
417 B
JavaScript
Raw Normal View History

2019-03-06 12:11:43 +01:00
class Player
{
constructor(name, color)
{
this.name = name;
this.color = color;
this.id = name;
2019-03-06 12:11:43 +01:00
}
set_name(name)
{
this.name = name;
}
set_color(color)
{
this.color = color;
}
get_name()
{
return this.name;
}
get_id()
{
return this.id;
2019-03-06 12:11:43 +01:00
}
get_color()
{
return this.color;
}
}