Git Product home page Git Product logo

cauldron's People

Contributors

corvimae avatar dlareau avatar jordanlytle avatar lilserf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cauldron's Issues

Include baserunners who are put out

Baserunners who are put out on a play as a result of caught stealing, fielders choice, etc, currently do not appear in the base_runners events for the associated play. Ideally, the behavior would be for them to still appear in the play and either have base_after_play = 0, or to have a separate "out" flag, to denote that the runner was put out during the play.

Various type issues.

Just keeping track of them so I don't forget!

  • pitchesList should be IEnumerable<string>.
  • gameId, batterId, batterTeamId, pitcherId, pitcherTeamId in GameEvent should be Guid.
  • runnerId, responsibleBatterId in GameEventBaseRunner should be Guid.
  • inning, errorsOnPlay, batterBaseAfterPlay, basesHit, runsBattedIn, outsBeforePlay, outsOnPlay should be sbyte.
  • homeStrikeCount, awayStrikeCount, totalStrikes, totalBalls, totalFouls, lineupPosition should be short.
  • baseBeforePlay, baseAfterPlay in GameEventBaseRunner should be sbyte.
  • All decimal values should be double.

Fielder's Choice event showing runners from 1st and 3rd scoring

Game ID 0078d5d5-dc02-4025-821a-21fb7cc20556

"Kennedy Loser batting for the Crabs.",
"Ball. 1-0",
"Ball. 2-0",
"Kennedy Loser reaches on fielder's choice. Parker Parra out at second base. Valentine Games scores"

Event ends up with this:

"base_runners": [
		{
			"runner_id": "84a2b5f6-4955-4007-9299-3d35ae7135d3",
			"responsible_pitcher_id": "20fd71e7-4fa0-4132-9f47-06a314ed539a",
			"base_before_play": 0,
			"base_after_play": 1,
			"was_base_stolen": false,
			"was_caught_stealing": false,
			"was_picked_off": false
		},
		{
			"runner_id": "c675fcdf-6117-49a6-ac32-99a89a3a88aa",
			"responsible_pitcher_id": "20fd71e7-4fa0-4132-9f47-06a314ed539a",
			"base_before_play": 3,
			"base_after_play": 4,
			"was_base_stolen": false,
			"was_caught_stealing": false,
			"was_picked_off": false
		},
		{
			"runner_id": "7dcf6902-632f-48c5-936a-7cf88802b93a",
			"responsible_pitcher_id": "20fd71e7-4fa0-4132-9f47-06a314ed539a",
			"base_before_play": 1,
			"base_after_play": 4,
			"was_base_stolen": false,
			"was_caught_stealing": false,
			"was_picked_off": false
		}

Pitcher attribution for baserunners is wrong

We'll have to maintain a separate Dictionary mapping baserunners to responsible pitchers; when they disappear from the state, we'll delete them. Every time we reconstruct the baserunner list we'll pull the pitcher ID from there

Game Event with null batter ID.

Not entirely possible what's making it happen, but I'm seeing some game events that do not have a batterId.

Example file: blaseball-log-1596003134151.json.gz

image

Baserunners appear to not be correctly updated after a play.

If a runner is batted in, there does not appear to be a baserunner record acknowledging that. The play should have a record with base_after_play set to 0 or 4 (ideally 4).

The responsible pitcher also seems to be always set to the current pitcher, regardless of who was actually responsible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.