repositories
/
fp1415-soccerfun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f52c6
)
small thing
author
Mart Lubbers
<mart@martlubbers.net>
Wed, 17 Jun 2015 20:33:15 +0000
(22:33 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Wed, 17 Jun 2015 20:33:15 +0000
(22:33 +0200)
src/Team_MartLubbers.icl
patch
|
blob
|
history
diff --git
a/src/Team_MartLubbers.icl
b/src/Team_MartLubbers.icl
index
ef3ff01
..
2c53cc1
100644
(file)
--- 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))
\r
d = sqrt(((b.px-a.px)*(b.px-a.px))+((b.py-a.py)*(b.py-a.py)))
\r
\r
-
//afterfix :: (FootballerAI
m) !Position !Metre !(!BrainInput, !Mem) -> (BrainOutput, !Mem)
\r
+
afterfix :: (FootballerAI Me
m) !Position !Metre !(!BrainInput, !Mem) -> (BrainOutput, !Mem)
\r
afterfix after point diff (input=:{me,others}, mm)
\r
# (i, mm) = nextRandomNumber mm
\r
| d < diff = after (input, mm)
\r