X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=src%2FStdTeam%2FTeam_Student_Rounds_Assignment.icl;h=8c0e333f9733ad7ad525794b189e488f78ea8a00;hb=HEAD;hp=a68889cc6e1281dd9c3f27b9114c6d08ba591522;hpb=3dc116920c097454085d0f3e74df68db8093316c;p=fp1415-soccerfun.git diff --git a/src/StdTeam/Team_Student_Rounds_Assignment.icl b/src/StdTeam/Team_Student_Rounds_Assignment.icl old mode 100755 new mode 100644 index a68889c..8c0e333 --- a/src/StdTeam/Team_Student_Rounds_Assignment.icl +++ b/src/StdTeam/Team_Student_Rounds_Assignment.icl @@ -8,7 +8,6 @@ implementation module Team_Student_Rounds_Assignment Do not change the implementation of base_TeamName_Student_Rounds. */ import Footballer -import FootballerFunctions Team_Student_Rounds :: !Home !FootballField -> Team Team_Student_Rounds home field = if (home == West) team (mirror field team) @@ -19,18 +18,7 @@ where ] club = base_TeamName_Student_Rounds +++ if (home==West) "_W" "_E" positions = [(-0.49,0.00)] - footballer playerID = {defaultFootballer playerID & name = "Peter88", brain = {memory = Void, ai = mind field}} + footballer playerID = defaultFootballer playerID // implement your footballer here base_TeamName_Student_Rounds :: String base_TeamName_Student_Rounds = "Student Rounds" - -mind :: !FootballField !(!BrainInput, !Void) -> (!BrainOutput, !Void) -mind field (i=:{me}, mm) -| y >= (t -o) && x > (~r+o) = (fix {px= ~r,py= t} c) (i, mm) -| x <= (~r+o) && y > (~t+o) = (fix {px= ~r,py= ~t} c) (i, mm) -| y <= (~t+o) && x < (r -o) = (fix {px= r, py= ~t} c) (i, mm) -| x >= (r -o) && y < (t -o) = (fix {px= r, py= t} c) (i, mm) - where - (x, y, o, c) = (me.pos.px, me.pos.py, m 4.0, m 1.5) - t = scale 0.5 field.fwidth - r = scale 0.5 field.flength \ No newline at end of file