Thursday 26 July 2018

Football/Soccer Formation

Today in class we learnt how to make a code for a football formation so we had to create there formation and type in the code so the programming would work so we had to type numbers of the coordinates for the positions and the colors of the position and players we had to make 1 goal keeper 2-4 fullback players 2-4 midfield players and 2-4 forward players the formation is here to try for your self.
 drawPlayer("grey",-0,-194,"Goal Keeper")
drawPlayer("blue",-50,-120,"Centre Back")
drawPlayer("blue",50,-120,"Centre Back")
#Add more players using the relevant parameters
drawPlayer("blue",110,-120,"Left Back")
drawPlayer("blue",-110,-120,"Right Back")
drawPlayer("blue",-110,-120,"Right Back")
drawPlayer("yellow",-60,-10,"midfielder")
drawPlayer("yellow",-0,-60,"midfielder")
drawPlayer("yellow",60,-10,"midfielder")
drawPlayer("red",-60,100,"left wing")
drawPlayer("red",60,100,"right wing")
drawPlayer("red",0,120,"right wing")