small referee patch to place ball correctly and passing done
[fp1415-soccerfun.git] / src / StdReferee / RefereeCoach_Passing_Assignment.icl
index 6ab6e2f..d5fdc6a 100644 (file)
@@ -95,7 +95,8 @@ brain field ({RefereeInput | theBall=ballState, team1, team2}, memory)
 where\r
        theBall                                                                         = getFootball ballState (team1 ++ team2)\r
        (compTeam,(studentTeam,studentHome))            = if (stringStarts (nameOf team1) base_TeamName_Opponent_Passing) (team1,(team2,East)) (team2,(team1,West))\r
-       ballKickoff                                                                     = {zero & px = if (studentHome == West) (scale -0.5 field.flength + penalty_area_depth) (scale 0.5 field.flength - penalty_area_depth)}\r
+       ballKickoff                                                                     = {zero & px = if (studentHome == West) (scale -0.5 field.flength + scale 2.0 penalty_area_depth) (scale 0.5 field.flength - scale 2.0 penalty_area_depth)}\r
+//     ballKickoff                                                                     = {zero & px = if (studentHome == West) (scale -0.5 field.flength + penalty_area_depth) (scale 0.5 field.flength - penalty_area_depth)}\r
        getMessagesForTooFarPlayers                                     = map (\fb -> TellMessage ("Your player with number " <+++ fb.playerID.playerNr <+++ " moved further than 10 meters"))\r
        (north_pole,south_pole)                                         = goal_poles field\r
        \r