Accumulate finite numeric scoring changes for two named sides and report the current leader.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Every event adds its numeric change to home or away in input order. Equal totals report a tie; otherwise the display name attached to the larger total becomes the leader.
Home name: Falcons Away name: Bears Events: home, 2 away, 3 home, 1
Falcons: 3 Bears: 3 Leader: Tied
Tabletop games record event sequences, scrimmages keep a sport-neutral running score, and operators enter negative corrections.