Ball Basic Athletic Logic Language. T he T eam Cipta Herwana - Project Manager Daniel Lasry - Language Guru Nathan Miller - System Architect Sam Lee -

Slides:



Advertisements
Similar presentations
The Sentence: Subject, Predicate, Kinds of Sentences
Advertisements

CardGhost ——Language design for card game Team member: Yang Jian, yj2220 Xiaoming Guo, gx2158 Yu An, ya2249 Dingding Xi, dx2131 Feng Zhou, fz2168.
Methodology- Framework Homeruns Batting Average Base on Balls Runs Batted In Strikeouts Errors Double Plays Fielding % Salaries Performance.
Super Baseball Simulator Game Review by, Mark Leich.
Baseball History The first recorded baseball contest took place a in Cartwright's Knickerbockers lost to the New York Baseball Club in a game at.
Mrs. Santucci, MHRD STARTER: If you get 31 out of 40 points on a test, what percent of the problems did you answer correctly?
Baseball Statistics By Krishna Hajari Faraz Hyder William Walker.
Circle Baseball – get everyone involved Cone out a circle with a 20y diameter Place 5 cones (bases) around the edge of the circle Teacher (T) stands on.
CSE 219 COMPUTER SCIENCE III PROJECT INTRODUCTION: A FANTASY BASEBALL DRAFT KIT.
Baseball dates all the back to the 1840s, these are some of the most important dates. “Dead Ball Era”: The years 1900 – 1919 were very low scoring and.
Baseball is a bat and ball sport played between two teams of nine players each. The goal is to score runs by hitting a thrown ball with a bat and touching.
By Ron Knapp Stats G GS GF W L PCT ERA CG SHO SV IP BFP H ER R HR BB IBB SO WP HBP BK HLD , ,150 2,939 1,211.
Simulating Sports: The Inputs and the Engines Paul Bessire General Manager, Co-Founder PredictionMachine.com September 29, 2010.
Batter Up! To play, click the presentation button.
KFrog Graphics Language for Kids Rami Habas - Project Manager Kyoho Satsumi - System Architect Hidemitsu Izawa - Tools Guru Murat Dogru - System Integrator.
BY NOAH CHRISTOPHER. Table of contents WHAT WAS JACKIE ROBINSON FAMOUS FOR? WHAT WAS JACKIE ROBINSON FAMOUS FOR? COMPARE AND CONTRAST COMPARE AND CONTRAST.
ESL - A language for Social Networks Team : Fantastic Four Ashwath Narsimhan – Project Manager Jyotsna Sebe – System Architect Shailesh Saroha – System.
MLB STATS Group SIX Astrid AmsallemJoel De Martini Naiwen ChangQi He Wenjie HuangWesley Thibault.
GodMode Team OneUp 1. Joe Ennever - Systems Integrator Zack Sheppard - Language Guru Nic Borensztein - Project Manager Danny Hertz - Systems Architect.
EMDL Extended Motion Description Language. EMDL vs. MDL.
Patterson Sports Welcome to Patterson Sports This presentation reviews key aspects of the book: How to Coach Little League Baseball: A Short Easy to Follow.
A Study of Salary and Performance Statistics in the MLB (During 2010)
 Started in Chicago in the late 19 th century  Equipment consisted of an old boxing glove made in a ball with shoe strings wrap around it  1889 George.
Experimental Probability of Simple Events
What do you want to know about Softball Stats? 1.Lineup Changes/Substitutions 2.Stolen Base vs. Defensive Indifference 3.More Detail the Better 4.Spring.
It is any type of writing that attempts to persuade us to adopt a point of view, agree with an opinion, take an action, form a belief, etc. It is any type.
Click button “Yes” to Start. Click button “No” to Exit.
Computer Graphics Term Project 이준하 강주원 - 지우와 수륙챙이 -
A Comparison Between the Mets and the Yankees Many baseball fans criticize the New York Yankees for “buying” the best players in Major League Baseball.
Hitting One Out of the Park Presentation by: Richie Veihl Derek Monroe.
What are the rules of Baseball?
Baseball History The first recorded baseball contest took place a in Cartwright's Knickerbockers lost to the New York Baseball Club in a game.
Jaiseung Bang – Project Manager Sebastian Zimmeck – Language and Tools Guru Vincent Liao – System Architect David Yang – System Integrator John Nguyen.
Interpretation Environments and Evaluation. CS 354 Spring Translation Stages Lexical analysis (scanning) Parsing –Recognizing –Building parse tree.
CS 153: Concepts of Compiler Design October 5 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Igawa May Learn Hard Way How Tough New York Fans Can Be IYOKU MASATO 5/11/2007 Note: Some slides have been modified by the instructor.
SIMetro Welcome!. SIMetro A Language for Simulating Metro Systems.
Introducing the OT Box Turtle GAME LOG. What is GAME LOG? A sophisticated digital Game Log (a.k.a. Day-by- Day book) FEATURES: Stores, tracks and outputs.
dimaggio-damn-yankees-baseball/ html BASEBALL American’s ‘National Pasttime’
Baseball Quiz Question 1: How many outs are in a half an inning in Baseball A). 6 B). 3 C). 2 D). 5.
Rounders is a sport originally from England. It involves batting & bowling. When batting, people use a wooden bat. There are 4 ways that a batter can.
Multiple Meanings Lesson One Part One Adapted from Vocabulary Building Photos from Google.
INDEPENDENT EVENTS. Events that do NOT have an affect on another event. Examples: Tossing a coin Drawing a card from a deck.
Dharmen Mehta (Project Manager) Nimai Buch (Language Guru) Yash Parikh (System Architect) Amol Joshi (System Integrator) Chaitanya Korgaonkar (Verifier.
Do Now: Identify the sentence type in each example.
A baseball/softball game is played by two teams who alternate between offense and defense. There are nine players on each side. The goal is to score more.
Section 2.1 Part 1: Percentiles, CRFGs, and Z- scores.
The New York Yankees Learn fast facts and stats about the best team in the East, before you strike out! Presented by: Allegra Jacobs Project #12: My Favorite.
Beginnings Mid-1800’s in the U.S. Became the national sport.
All About Baseball. Written By Jason. Table of Contents Chapter 1 All About the Field3 Chapter 2 Practices4 Chapter 3 A Real Game5 Chapter 4 How to Win.
All About Baseball Written By Matt. Table of Contents Chapter 1 Where to Go3 Chapter 2 Safety Gear4 Chapter 4 When You Are6 Diagram7 Different Kinds of.
S ECTION 5.3 – S IMULATIONS. W HAT IS A SIMULATION ? A simulation is a mock trial of an experiment without doing the experiment. It uses theoretical probabilities.
My Baseball survey by Angel Aguila
Team Suds Michelle Feng – Architect Mohamed ElTahan – System Integrator Ji Fang – Tools Guru McClain Braswell – Tester Joseph Kaptur – Project Manager.
A language for auralizing data. MOTIVATION  Visual input overload!  Automatic musical scoring.
Comparative Advantage and Specialization Sports and Trade
THRLL Programming Language Aimee Sanchez Neetha Sebastion Kapil Verma Hemanth Murthy Michael Seaman.
Baseball A national sport A presentation By Colin Cardinal.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Scorekeeping Guide BASIC BATTING STATISTICS At Bats (AB) = Plate appearances minus [ BB + HBP + SB + SF + CI ] Hits = 1B + 2B + 3B + HR Batting Avg. =
2006 RotoAuthority Fantasy Baseball Guide. Position Player Cheatsheet View leaders for AVG, HR, RBI, R, SB for AL, NL, or mixed, all on one page.
Homepage Bat-and-Ball Games Ball-over-Net Games WELCOME!
At Bats Hits Runs Doubles Triples Home Runs RBI’s Walks Batting Average Strikeouts.
ABC! Always Be…. Coding (calculated measures)
Function There are two types of Function User Defined Function
Chapter 5 - Functions Outline 5.1 Introduction
The Math of Baseball Will Cranford 11/1/2018.
A language for auralizing data
Science Fair – Baseball
Probability in Baseball
Presentation transcript:

Ball Basic Athletic Logic Language

T he T eam Cipta Herwana - Project Manager Daniel Lasry - Language Guru Nathan Miller - System Architect Sam Lee - System Integrator Jordan Schau - Tester and Validator

W hat i s Ball? Ball is a language designed to facilitate the simulation of Baseball games for the layman. Ball is an imperative and interpreted programming language. Ball is built on the efficiencies and powerful toolset of Java.

W ho c an u se Ball Baseball Fans Baseball Managers Little League Parents Sports Bettors

O bjective Create our own custom Simulation functions with ease.Streamline the process. Omit obfuscating details: Scoping Strong Typing Irrelevant Declarations

C ustom S imulations Create a simulation function. Activate! Call sim(team1, team2, times) simfunction simpleSim is: if (team1’s W > team2’s W) then: return team1; else: return team2; end activate simpleSim; sim(Dodgers, Yankees, 5);

S treamlined P rocess Straightforward loading and management of teams. Simple stat declaration and manipulation. Easy filtering, sorting and selecting from teams. stat bWalk = BB / PA; stat bSingle = (Hits - (2B +3B + HR)) / PA; stat bDouble = 2B / PA; stat bTriple = 3B / PA; stat bHR = HR / PA; team Dodgers = load("dodgers.team"); player Manny = "Manny Ramirez" from Dodgers; print Manny’s bHR; list 300hitters = Dodgers where (avg >.300);

E ase o f P rogramming Scope: Functions declared anywhere in the body can be called anywhere! Users do not need to understand scopes. Typing: ‘number’ covers integers and decimals. ‘list, ‘player’ and ‘team’ types. Irrelevant Declarations: No need to declare a main class and function. Simple loops and conditionals print "play ball"; number anInteger = 5; number aDecimal = 2.34; list aList = [team1, team2, team3]; list aList = [3, 4, 5]; function setProb() returns nothing: probWalk = 2; probSingle = 3; probDouble = 4; end

T OOLS U SED Byacc/J Google Code Subversion JFlex Ubuntu Eclipse

C ompiler S tructure Lexer Source Program Symbo l Table Parser Progra m Progra m Expressio n Expressio n Declaration Declaration Print Print Jump Jump Condition al Condition al Syntax Tree Java Source Java Compile r JVMJVM JVMJVM Compiler Front-end Runtim e Classes

E xample P rogram simfunction simpleSim is: if (team1’s W > team2’s W) then: return team1; else: return team2; end activate simpleSim; //activates the simpleSim function team Indians = load(“Indians.team”); team Orioles = load(“Orioles.team”); print "Winner: " + sim(Indians, Orioles, 1);

T esting Test Driven Development White Box Testing Regression Testing Unit Testing Accuracy Testing Real Results vs Predicted Results

C onclusion Why BALL? Simple Lightweight Accurate Fun :)

/*Set the global probabilities of this inning*/ combineProb(batter, pitcher); randomizeProbabilities(); team1Score += probWalk*(1/4) + probSingle*(1/4) + probDouble*(2/4) + probTriple*(3/4) + probHR; end /*NOW, team2 is batting and team1 is pitching! (5 times)*/ do 5 times: list bestBatters2 = top(9, team2 where (type is "batter"), AVG); player batter = any bestBatters2; list bestPitchers2 = bottom(4, team1 where (type is "pitcher"), ERA); player pitcher = any bestPitchers2; player batter = any team2 where (type is "batter" and AVG is top 5); player pitcher = any team1 where (type is "pitcher" and ERA is lowest 5); combineProb(batter, pitcher); randomizeProbabilities(); team2Score += probWalk*(1/4) + probSingle*(1/4) + probDouble*(2/4) + probTriple*(3/4) + probHR; end if (team1Score > team2Score) then: print "Team " + team1’s name + " wins against team " + team2’s name + "!!"; return team1; else: print "Team " + team2’s name + " wins against team " + team1’s name + "!!"; return team2; end /*END BASIC SIMULATION FUNCTION*/ stat bWalk = BB / PA; stat bSingle = (Hits - (2B + 3B + HR))/ PA; stat bDouble = 2B / PA; stat bTriple = 3B / PA; stat bHR = HR / PA; /*Pitcher probabilities*/ stat pWalk = BB / BF; stat pSingle = (Hits / BF) - pHR - pTriple - pDouble; stat pDouble = Hits x.174 / BF; stat pTriple = Hits x.024 / BF; stat pHR = HR / BF; /***END STATS DEFINITION***/ /*****************************************************/ /*Global variables that hold combined probabilities given a pitcher and a batter*/ number probWalk = 0; number probSingle = 0; number probDouble = 0; number probTriple = 0; number probHR = 0; simfunction basicSimulation is: number team1Score = 0; number team2Score = 0; do 5 times: /*Select random players from the best 5 of each team*/ list bestBatters = top(9, team1 where (type is "batter"), AVG); player batter = any bestBatters; list bestPitchers = bottom(4, team2 where (type is "pitcher"), ERA); player pitcher = any bestPitchers; C omplex S imulation