initial commit

This commit is contained in:
George Powell
2026-03-26 12:11:43 -04:00
commit 9b779598e9
25 changed files with 665 additions and 0 deletions

23
types/Team.ts Normal file
View 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;
}