Simple Soccer GAM 376 Robin Burke Fall 2006.

Slides:



Advertisements
Similar presentations
American Football: The Basics. The Field The football field is 100 yards long. On both ends there is an End Zone where all touchdowns are scored. In each.
Advertisements

STRUCTURES & STRATAGIES PRINCIPLES OF PLACE
Team Handball.
TEAM HANDBALL.
Field Hockey Unit.
Field Setup Field Setup (5 stations) Separate large field into three equal “stations” using cones, and small field into two equal “stations” using cones.
Soccer Study Guide.
Soccer Notes. Field Diagram: Penalty area Center circle Sideline Goal line Goalie Backs MidfieldersForwardsCorner area Goal area Goal
Soccer.
SOCCER.
Frank Augustus Miller Middle School Physical Education
SOCCER.
Michigan 1 Soccer Training Guide. Team Competition 11-A-Side 7-A-Side 5-A-Side Individual Skills Contest Unified Team Competition 11-A-Side 7-A-Side 5-A-Side.
When you see a soccer ball, jump and hit it in the air with your head.
NEW YORK STATE WEST YOUTH SOCCER ASSOCIATION nyswysa.org COACHES ASSOCIATION WORKSHOP February 9th 2002 Glen Buckley State Director of Coaching.
5/18/20151 Team Sport AI CIS 479/579 Bruce R. Maxim UM-Dearborn.
Basketball Study Guide
Flag Football.
What is the objective? Flag Football is an invasion sport. Invasion games have teams trying to advance in one direction, while protecting their own.
Elwood City Junior Football Club Key Information Registration period: Feb/March 2014 Preseason training: Commences March 6 th 2014 Home and Away.
Lakeshore Middle School Physical Education.  The game originated at the University of Michigan in 1921 as part of the men’s physical education and intramural.
Alexandria Soccer Association U9-U12 Curriculum: Unit 1
Lesson 1: Game 1 Lesson 1: Game 1  Tactical Problem: Attacking the basket  Lesson Focus: Shooting within the zone of the basket Limited Instruction:
Field Setup Field Setup (5 stations) Separate large field into three equal “stations” using cones, and small field into two equal “stations” using cones.
  By:   Hiep and Long.
Structures and Strategies- Basketball
Types of Games. There are 4 main divisions of games: Net/ Wall – badminton, volleyball, tennis, pickleball … Striking/ Fielding – softball, cricket …
1 GK Power/Finesse Set up is a goalkeeper protecting a full size goal, a coach with a supply of balls on the goal line, and a line of shooters behind a.
Soccer Ms. Moseley Grade 6-8. History Soccer, or football as it is known in most of the world, is thought to have begun around 200 BC. The Chinese played.
Lacrosse By: Charlie Englehart. Table of Contents History of Lacrosse…………………………………….1 Fundamentals…………………………………………...2 Positions…………………………………………………….
BTEC Level 2 Diploma in Sport Carlos Munoz. Task 1 – Matching task (in pairs) Key terms Zonal defending Man to man marking Defending Tackling Intercepting.
Art 315 Lecture 5 Dr. J. Parker AB 606. Last time … We wrote our first program. We used a tool called GameMaker. The program we wrote causes a ball to.
Soccer Springboro Junior High School. The Field SIDELINE ENDLINEENDLINE When the ball goes out of bounds at the sideline, the other team performs a THROW.
CHS Boys Soccer.
Coaching Clinic Why 4 v 4 Terry Michler Soccer Coach CBC High School.
Drew Lynd CI 350 Wednesday 4:00-6:20. Basic Rules Chart.
Artificial Intelligence for Games Lecture 2.  2D sports simulation (no interactive player)  2 teams (“red” and “blue”)  5 autonomous agents per team.
Math / Physics 101 GAM 376 Robin Burke Fall 2006.
Shaping Game Play in Handball
Basketball Study Guide. History Basketball was invented by Dr. James Naismith in 1891 in Springfield, Massachusetts. Basketball was invented by Dr. James.
Football Made Easy UNDERSTANDING THE GAME. Offensive Player Positions  Center (C): first person to touch the ball and he snaps to the Quarterback (QB);
Playing.. Place equally skilled players together in the same group. Have 2 groups per grid so one group is resting while the other group is active. Place.
By : Allison and Avery  How to kick the soccer ball  Calls in Fifa (the cards)  Positions LET’S GET STARTED!!!!!!!!!!!
Soccer. Overview History Gameplay Techniques Field & Positions.
United States Soccer Federation Tactical Thinking for Referees United States Soccer Federation.
Science Class: 851. Football is the name of several similar team sports, all with similar origins which involve, to varying degrees, kicking a ball with.
TEAM HANDBALL History: Created in Germany in 1890’s for the training of gymnasts. Two versions: 11 man outdoor game and a 7 man indoor game. The indoor.
Lacrosse 101. What is lacrosse? Lacrosse is a full contact sport played using a stick with a net on the end, called a crosse, which consists of usually.
Artificial Immune System based Cooperative Strategies for Robot Soccer Competition International Forum on Strategic Technology, p.p , Oct
Cold War Hockey 10/19/2009 Mike Sherron Dmitriy Ansolis.
Coaching Pack 9 – 11 Years. What Am I Coaching Today? What Might the Players Learn or Get Better at? TechnicalPsychological example PhysicalSocial example.
J. seiler 12/20021 Tournament Rules that seem note worthy to mention. 7 V 7 games. 45 Minute Games – No half time? Kick off can be played in any direction.
Graph Algorithms GAM 376 Robin Burke Winter 2006.
Offensive Strategy BASKETBALL.
Higher Basketball Roles and Rules. Higher Basketball The object of the game of basketball is to outscore your opponents by throwing the ball through the.
Soccer Drill Practice Cards This PowerPoint contains 16 soccer drill practice cards. Once printed and cut out, each 3X5 card contains detailed instructions.
Graph Search II GAM 376 Robin Burke. Outline Homework #3 Graph search review DFS, BFS A* search Iterative beam search IA* search Search in turn-based.
Flag football Flag football is a variation of touch. The flags are worn and detached or stripped from a belt. To score, a team must carry, pass, or kick.
Soccer. Overview History Gameplay Techniques Vocabulary Field & Positions YELLOW is input.
HORIZONTAL OFFENSE some principles apply to this offense so remember the golden rules! 1. Don’t throw over a players head, or in other words stay wide.
Flag Football. What is Flag Football?  Flag is a modified version of tackle football and provides participants with the opportunity to develop many.
Simple Soccer GAM 376 Robin Burke Winter 2008.
Soccer.
Speedball.
FLAG FOOTBALL 9/19/2018.
4 year olds-Kindergarten
Mini Soccer What Game Format and Development Model is Best
Mini Soccer What Game Format and Development Model is Best
Soccer.
Presentation transcript:

Simple Soccer GAM 376 Robin Burke Fall 2006

Outline Game Implementation Project #1

Admin Homework #3 Grading Upcoming due today I am behind but no other homework due for awhile Upcoming 10/9: Design phase of Soccer project 10/11: Midterm 10/17: Soccer project

Simple Soccer A 2D sports game 5 agents per team 1 ball 1 field 4 field players 1 goal keeper 1 ball 1 field 2 goals

Architecture Main loop SoccerPitch Update SoccerPitch Redraw responsible for updating what is on the field

SoccerPitch Walls on all four sides Regions Goals no throw-ins or goal kicks Regions 18 rectangular regions for positioning players Goals each tracks number of goals scored

MovingEntity Abstract class for all moving objects Subclasses has steering behaviors Subclasses SoccerBall FieldPlayer

SoccerBall embeds some of the physics of its motion FuturePosition Δx = v Δt + ½ af Δt2 where af is the deceleration due to friction TimeToCoverDistance Δt = (v' – v) / af but what is v' issues what if inner part is negative? then the ball won't get that far what is the initial velocity, v?

Velocity Reset What really happens? a player swings a foot moment of interaction with ball impulse new velocity results really it is a foot/ball collision But not necessary to model it this way assume that the ball is stopped before a kick players can't add to existing velocity OK, because it looks OK much easier to model Initial velocity equals impulse acceleration equals F / m So we can calculate TimeToCoverDistance given two points and a force

Simple Soccer Implementation of a 5-player soccer team Two state machines "Team state" "Player state" Tiered state machines common in tactical FPS games teams have a tactical state "flanking" and each member has its own role "covering fire"

Team state kickoff offense defense everybody go to default position not true soccer kickoff offense look for opportunities to get a pass upfield from the player with the ball defense go to defensive position closest player chases ball

Offense Kickoff Defense other team possession goal scored our team possession Kickoff Defense goal scored play starts

Team Behaviors Tracks passes Tracks ball Controlling player receiving player of a pass set when a pass is made Tracks ball closest player to the ball constantly updated Controlling player the player with the ball Supporting player a player that will get into position for a pass

Support Spot Considers 30 positions on the opponent's half of the field Calculates which position can receive a pass and can shoot a goal and are close enough to ball Supporting player will try to go to the best support spot

Player state defense offense chase ball if you're the closest move toward goal with ball pass if possible without ball (if supporting player) move to support spot ask for pass otherwise do nothing

Steering behaviors tracking the ball "visually" chasing the ball steering to support position goalie has special behavior to get in blocking position

State Machine Global state Wait ReceiveBall KickBall Dribble ChaseBall routes messages Wait ReceiveBall accept a pass KickBall make a pass Dribble try to move the ball downfield ChaseBall try to take possession of the ball ReturnToHomeRegion go home for kickoff SupportAttacker go to supporting position

SupportAttacker ReceiveBall ChaseBall Dribble ReturnToHR KickBall Wait MSG: Support MSG: Receive_Ball SupportAttacker ReceiveBall MSG: Go_Home not closest in receiving range ChaseBall Dribble kicked ReturnToHR in range can't shoot or pass can't kick KickBall closest at home Wait goal or pass attempt

Goal Keeper Different states TendGoal InterceptBall interpose self between ball and goal midpoint InterceptBall if within tending range PutBallBackIntoPlay passes to nearest player

Key Calculations Is a pass safe? Is it possible to shoot? predict trajectory of ball predict closest intercept of each opponent Is it possible to shoot? test positions along the goal mouth does this randomly Who to pass to? tests all of the teammates for validity and nearness to goal Where to place the pass? out of opponents range within receivers range

Demo

SteeringSoccerLab Not the same as Buckland's Allows multiple team implementations Records the CPU time used by each AI implementation Don't use Buckland's code

Abstract class AbstSoccerTeam Abstract functions all soccer teams must subclass Abstract functions CreatePlayers teams can have different player setups InitStateMachine for team state machine teams can have different team FSMs InitPlayers Name

How to allow different opponents? Need students to make their own soccer teams need to run tournament in which teams compete don't want to recompile when adding a team How to make extensible code that doesn't need recompilation? In particular how can I create an instance if I don't know the name of the class

AbstractFactory

Registration How to know which factory object to use? Static instance that registers a name on instantiation Table associating factories with names Result dynamic object creation (A bit easier in Java using reflection)

Implementation TeamMaker class includes a static "registry" member table of name, class pairs has a newTeam method looks up the factory class in the table calls its makeTeam method The class stored here is a subclass of TeamMaker must implement makeTeam makes an instance of the right team object must include a static member with an instance of itself when that instance is created it calls the TeamMaker constructor with a name the factory class is then registered under that name

Project #1 Two parts Design (10/6) Implementation (5 pm, 10/17) tell me what you want to do to create a better team Implementation (5 pm, 10/17) deliver implementation I will compile and check compatibility Tournament (10/18) In class Last minute changes OK

Tournament rules Round-robin Scoring 1 game matches 5 minutes / match Scoring Lower scoring team get a bonus if they used less CPU time 20% less CPU = 1 point Ties go to the most efficient team Degenerate strategies disqualified Randomized elements must stay

Monday Lab using SimpleSoccer