Tui #12
367
gamelog.ron
367
gamelog.ron
@@ -1105,5 +1105,372 @@
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
),
|
||||||
|
Game(
|
||||||
|
version: "0.6.0",
|
||||||
|
flags: [Interval(3)],
|
||||||
|
periods: [
|
||||||
|
Period(
|
||||||
|
start: First,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Kickoff(Nebraska),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionPowerZero,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: StrongFlood,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HalfbackSlipScreen,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(13),
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionBoot,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: Fourth,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Second,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Play(
|
||||||
|
action: Curls,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: CrackStudentBodyRightTackle,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(4)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: First,
|
||||||
|
terrain: GoalLine
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Second,
|
||||||
|
terrain: GoalLine
|
||||||
|
),
|
||||||
|
Score(Touchdown),
|
||||||
|
Score(PatTouchdown),
|
||||||
|
Kickoff(Syracuse),
|
||||||
|
Penalty(Yards(15)),
|
||||||
|
Play(
|
||||||
|
action: CrackStudentBodyRightTackle,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(19)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HalfbackSweep,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Fourth,
|
||||||
|
terrain: Yards(11)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Third,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Kickoff(Syracuse),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: StrongFlood,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(11)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: Third,
|
||||||
|
terrain: Inches,
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HalfbackSweep,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: GoalLine
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Second,
|
||||||
|
terrain: GoalLine
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Fourth,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Play(
|
||||||
|
action: StrongFlood,
|
||||||
|
down: Third,
|
||||||
|
terrain: GoalLine
|
||||||
|
),
|
||||||
|
Score(Touchdown),
|
||||||
|
Score(PatTouchdown),
|
||||||
|
Kickoff(Nebraska),
|
||||||
|
Play(
|
||||||
|
action: Curls,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(1)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Curls,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Turnover(Syracuse),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(1)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Overtime(1),
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Play(
|
||||||
|
action: StrongFlood,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(8)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: None,
|
||||||
|
terrain: None
|
||||||
|
),
|
||||||
|
Turnover(Syracuse),
|
||||||
|
Play(
|
||||||
|
action: Unknown, // It failed so bad.
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(15)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown, // It failed so bad.
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(22)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionBoot,
|
||||||
|
down: Fourth,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Score(FieldGoal)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Game(
|
||||||
|
version: "0.6.1",
|
||||||
|
flags: [Interval(3)],
|
||||||
|
periods: [
|
||||||
|
Period(
|
||||||
|
start: First,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Kickoff(SouthCarolina),
|
||||||
|
Play(
|
||||||
|
action: FleaFlicker,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(16)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HalfbackSlipScreen,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Fourth,
|
||||||
|
terrain: Yards(8)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HailMary,
|
||||||
|
down: None,
|
||||||
|
terrain: None
|
||||||
|
),
|
||||||
|
Turnover(Colorado),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: None,
|
||||||
|
terrain: None
|
||||||
|
),
|
||||||
|
Turnover(SouthCarolina)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Second,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Play(
|
||||||
|
action: HalfbackSweep,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Mesh,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(9)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: FleaFlicker,
|
||||||
|
down: None,
|
||||||
|
terrain: None
|
||||||
|
),
|
||||||
|
Turnover(Colorado),
|
||||||
|
Play(
|
||||||
|
action: StrongFlood,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(8)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: SlotOut,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Score(Touchdown),
|
||||||
|
Score(PatSafety),
|
||||||
|
Kickoff(SouthCarolina),
|
||||||
|
Play(
|
||||||
|
action: CrackStudentBodyRightTackle,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: CrackStudentBodyRightTackle,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(9)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: None,
|
||||||
|
terrain: None
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Third,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Kickoff(Colorado),
|
||||||
|
Play(
|
||||||
|
action: SpeedOption,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(4)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: Unknown,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(13)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
Period(
|
||||||
|
start: Fourth,
|
||||||
|
end: None,
|
||||||
|
events: [
|
||||||
|
Play(
|
||||||
|
action: SpeedOption,
|
||||||
|
down: Second,
|
||||||
|
terrain: Yards(6)
|
||||||
|
),
|
||||||
|
Penalty(Yards(11)),
|
||||||
|
Play(
|
||||||
|
action: PlayActionComebacks,
|
||||||
|
down: Third,
|
||||||
|
terrain: Yards(5)
|
||||||
|
),
|
||||||
|
Play(
|
||||||
|
action: HalfbackSlipScreen,
|
||||||
|
down: First,
|
||||||
|
terrain: Yards(10)
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
]
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|||||||
2
gamelog/Cargo.lock
generated
2
gamelog/Cargo.lock
generated
@@ -19,7 +19,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gamelog"
|
name = "gamelog"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ron",
|
"ron",
|
||||||
"semver",
|
"semver",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "gamelog"
|
name = "gamelog"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ pub enum Action {
|
|||||||
CrackStudentBodyRightTackle,
|
CrackStudentBodyRightTackle,
|
||||||
Curls,
|
Curls,
|
||||||
FleaFlicker,
|
FleaFlicker,
|
||||||
|
HailMary,
|
||||||
HalfbackSlam,
|
HalfbackSlam,
|
||||||
HalfbackSlipScreen,
|
HalfbackSlipScreen,
|
||||||
HalfbackSweep,
|
HalfbackSweep,
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ impl Game {
|
|||||||
let events = self
|
let events = self
|
||||||
.periods
|
.periods
|
||||||
.iter()
|
.iter()
|
||||||
|
// TOTALLY BORKED.
|
||||||
|
// BREAKS IF THE TEAMS ARE UNKNOWN, NEEDS FIXING.
|
||||||
.filter_map(|period| Some(period.team_events(team.to_owned(), None).ok().unwrap()))
|
.filter_map(|period| Some(period.team_events(team.to_owned(), None).ok().unwrap()))
|
||||||
.collect::<Vec<Vec<Event>>>()
|
.collect::<Vec<Vec<Event>>>()
|
||||||
.concat();
|
.concat();
|
||||||
|
|||||||
Reference in New Issue
Block a user