17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
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;
|
|
}
|
|
}
|