// src/entities/Player.ts
export class Player {
public id: string;
public x: number;
public y: number;
public color: string;
constructor(id: string) {
this.id = id;
this.x = Math.floor(Math.random() * 100); // 初期位置をランダムに
this.y = Math.floor(Math.random() * 100);
// ランダムな色をつけるとおしゃれです
this.color = '#' + Math.floor(Math.random()*16777215).toString(16);
}
}