initial framework added
[fp1415-soccerfun.git] / src / StdTeam / Team_Student_DeepPass_Assignment.icl
1 implementation module Team_Student_DeepPass_Assignment
2
3 /** Implement a solution to the deep passing assignment.
4
5 Your team consists of two players, with player's numbers 2 and 3 respectively.
6 Below you should only change the definition of footballer to your solution.
7 Do not change the positions and player identifications.
8 Do not change the implementation of base_TeamName_Student_DeepPass.
9 */
10
11 import Footballer
12
13 Team_Student_DeepPass :: !Home FootballField -> Team
14 Team_Student_DeepPass home field = if (home == West) team (mirror field team)
15 where
16 team = [ {footballer {clubName=club,playerNr=nr} & pos = toPosition (scale (0.5*x) field.flength,scale (0.5*y) field.fwidth)}
17 \\ (x,y) <- positions
18 & nr <- [2,3]
19 ]
20 club = base_TeamName_Student_DeepPass +++ if (home==West) "_W" "_E"
21 positions = [(0.05,-0.05),(0.35,0.05)]
22 footballer playerID = defaultFootballer playerID // implement your footballer here
23
24 base_TeamName_Student_DeepPass :: String
25 base_TeamName_Student_DeepPass = "Student Deep Pass"