outline and randomness. Afterfix now tackles if necessary
[fp1415-soccerfun.git] / src / StdTeam / Team_Student_Rounds_Assignment.icl
index a68889c..8c0e333 100644 (file)
@@ -8,7 +8,6 @@ implementation module Team_Student_Rounds_Assignment
        Do not change the implementation of base_TeamName_Student_Rounds.\r
 */\r
 import Footballer\r
-import FootballerFunctions\r
 \r
 Team_Student_Rounds :: !Home !FootballField -> Team\r
 Team_Student_Rounds home field         = if (home == West) team (mirror field team)\r
@@ -19,18 +18,7 @@ where
                                                                          ]\r
        club                                                    = base_TeamName_Student_Rounds +++ if (home==West) "_W" "_E"\r
        positions                                               = [(-0.49,0.00)]\r
-       footballer playerID                             = {defaultFootballer playerID & name = "Peter88", brain = {memory = Void, ai = mind field}}\r
+       footballer playerID                             = defaultFootballer playerID            // implement your footballer here\r
 \r
 base_TeamName_Student_Rounds :: String\r
 base_TeamName_Student_Rounds = "Student Rounds"\r
-\r
-mind :: !FootballField !(!BrainInput, !Void) -> (!BrainOutput, !Void)\r
-mind field (i=:{me}, mm)\r
-| y >= (t -o) && x > (~r+o) = (fix {px= ~r,py= t}  c) (i, mm)\r
-| x <= (~r+o) && y > (~t+o) = (fix {px= ~r,py= ~t} c) (i, mm)\r
-| y <= (~t+o) && x < (r -o) = (fix {px= r, py= ~t} c) (i, mm)\r
-| x >= (r -o) && y < (t -o) = (fix {px= r, py= t}  c) (i, mm)\r
-       where\r
-               (x, y, o, c) = (me.pos.px, me.pos.py, m 4.0, m 1.5)\r
-               t = scale 0.5 field.fwidth\r
-               r = scale 0.5 field.flength
\ No newline at end of file