Files
softball/types/Team.ts
George Powell 9b779598e9 initial commit
2026-03-26 12:11:43 -04:00

24 lines
641 B
TypeScript

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;
}