thomaswilson-sveltekit/src/lib/floriferous/floriferous-player.ts

18 lines
375 B
TypeScript
Raw Normal View History

export interface FloriferousPlayerParams {
name: string;
score: number;
rowAtEndOfGame: number;
}
export class FloriferousPlayer {
readonly name: string;
readonly score: number;
readonly rowAtEndOfGame: number;
constructor(params: FloriferousPlayerParams) {
this.name = params.name;
this.score = params.score;
this.rowAtEndOfGame = params.rowAtEndOfGame;
}
}