From: Mart Lubbers Date: Wed, 17 Jun 2015 20:33:15 +0000 (+0200) Subject: small thing X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=d262b687cc47bcd20d8a11dc20b99e817c88255e;p=fp1415-soccerfun.git small thing --- diff --git a/src/Team_MartLubbers.icl b/src/Team_MartLubbers.icl index ef3ff01..2c53cc1 100644 --- a/src/Team_MartLubbers.icl +++ b/src/Team_MartLubbers.icl @@ -115,7 +115,7 @@ distToLine a b c = (abs (((b.px-a.px)*(a.py-c.py))-((a.px-c.px)*(b.py-a.py))))/d (/) m1 m2 = (m (toReal m1)/(toReal m2)) d = sqrt(((b.px-a.px)*(b.px-a.px))+((b.py-a.py)*(b.py-a.py))) -//afterfix :: (FootballerAI m) !Position !Metre !(!BrainInput, !Mem) -> (BrainOutput, !Mem) +afterfix :: (FootballerAI Mem) !Position !Metre !(!BrainInput, !Mem) -> (BrainOutput, !Mem) afterfix after point diff (input=:{me,others}, mm) # (i, mm) = nextRandomNumber mm | d < diff = after (input, mm)