Back to cricket
Scoring
/
Cricket scoring
v1
Publishable
25 nodes · 20 tests
Scores: whole sport
Edit — opens a copy
Version 1 is published
— frozen, because fixtures are scored by it. Editing opens a copy; this one keeps working until you publish that copy.
×
Nodes
Drag one onto the canvas
Add a node
Published, so nothing can be added.
Edit
in the header opens a copy.
Command
Something a scorer does. Code and an input schema.
Validation
An expression or function that can refuse it.
Derive
One per program. Folds the log into the scoreboard.
Trigger
Returns the rows it owns. Never writes them itself.
Context
Shapes what a scoring screen reads.
100%
Auto layout
Start match
command
append
5 inputs · 1 rules · 0 outputs
Match Not Started
validation
expression
The match has already started
Start innings
command
append
5 inputs · 3 rules · 0 outputs
Match Is Live
validation
expression
The match is not live
No Innings Open
validation
expression
An innings is already open — close it first
Innings Remaining
validation
expression
Every innings of this format has been played
Delivery
command
append
11 inputs · 4 rules · 5 outputs
Innings Is Open
validation
expression
×3
No innings is open
Delivery Shape
validation
function
That combination of runs, extras and dismissal is not legal
Striker Not Out
validation
expression
That batter is already out
Bowler Quota
validation
function
That bowler has bowled the full quota
Batting Stats
trigger
sync
×2
Writes stat_value
Bowling Stats
trigger
sync
×2
Writes stat_value
Team Innings
trigger
sync
×2
Writes stat_value
Match Result
trigger
sync
×3
Writes fixture_competitor_rank
Points Table
trigger
async
×3
Writes classification_standing
Change participants
command
append
3 inputs · 1 rules · 0 outputs
Innings Is Open
validation
expression
×3
No innings is open
End innings
command
append
0 inputs · 1 rules · 5 outputs
Innings Is Open
validation
expression
×3
No innings is open
Batting Stats
trigger
sync
×2
Writes stat_value
Bowling Stats
trigger
sync
×2
Writes stat_value
Team Innings
trigger
sync
×2
Writes stat_value
Match Result
trigger
sync
×3
Writes fixture_competitor_rank
Points Table
trigger
async
×3
Writes classification_standing
Match event
command
append
2 inputs · 1 rules · 0 outputs
Match Is Started
validation
expression
The match has not started
Quick commentary
command
append
2 inputs · 0 rules · 0 outputs
Editorial note
command
append
4 inputs · 0 rules · 0 outputs
End match
command
append
0 inputs · 1 rules · 2 outputs
Match Has Ended
validation
expression
The match has not ended — finish the last innings first
Match Result
trigger
sync
×3
Writes fixture_competitor_rank
Points Table
trigger
async
×3
Writes classification_standing
Match State
derive
computed
Builds scoreboard