initial framework added
[fp1415-soccerfun.git] / src / StdTeam / Team_Student_Keeper_Assignment.icl
diff --git a/src/StdTeam/Team_Student_Keeper_Assignment.icl b/src/StdTeam/Team_Student_Keeper_Assignment.icl
new file mode 100644 (file)
index 0000000..13e8459
--- /dev/null
@@ -0,0 +1,22 @@
+implementation module Team_Student_Keeper_Assignment\r
+\r
+/**    Implement a solution to the keeper assignment.\r
+\r
+       Your team consists of a single keeper, with player's number 1.\r
+       Below you should only change the definition of footballer to your solution.\r
+       Do not change the positions and player identifications. \r
+       Do not change the implementation of base_TeamName_Student_Keeper.\r
+*/\r
+\r
+import Footballer\r
+\r
+Team_Student_Keeper                            :: !Home FootballField -> Team\r
+Team_Student_Keeper home field = if (home == West) team (mirror field team)\r
+where\r
+       team                                            = [{footballer {clubName=club,playerNr=1} & pos = {zero & px = scale -0.485 field.flength}}]\r
+       club                                            = base_TeamName_Student_Keeper +++ if (home == West) "_W" "_E"\r
+       footballer playerID                     = defaultFootballer playerID            // implement your footballer here\r
+\r
+base_TeamName_Student_Keeper   :: String\r
+base_TeamName_Student_Keeper   = "Student Keeper"\r
+\r