initial commit
This commit is contained in:
23
types/Team.ts
Normal file
23
types/Team.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { Player } from "./Player";
|
||||
|
||||
export type Team = {
|
||||
// how to organize a team's list of batters, pitchers, bench players, etc.?
|
||||
readonly battingLineup: readonly Player[];
|
||||
readonly fieldingLineup: FieldingLineup;
|
||||
readonly bullpen: readonly Player[];
|
||||
readonly bench: readonly Player[];
|
||||
readonly batterIndex: number;
|
||||
// where to keep track of players no longer in the game?
|
||||
}
|
||||
|
||||
type FieldingLineup = {
|
||||
readonly pitcher: Player;
|
||||
readonly c: Player;
|
||||
readonly firstBase: Player;
|
||||
readonly secondBase: Player;
|
||||
readonly thirdBase: Player;
|
||||
readonly ss: Player;
|
||||
readonly lf: Player;
|
||||
readonly cf: Player;
|
||||
readonly rf: Player;
|
||||
}
|
||||
Reference in New Issue
Block a user