Fixing collective strategy

This commit is contained in:
EEva 2013-07-17 19:09:00 +02:00
parent c6559c220c
commit 4763ad436f
1 changed files with 7 additions and 5 deletions

View File

@ -9,8 +9,7 @@ globals [
sbegin-uncertainty sbegin-uncertainty
send-uncertainty send-uncertainty
lbegin-uncertainty lbegin-uncertainty
lend-uncertainty lend-uncertainty
s
] ]
__includes [ __includes [
@ -18,6 +17,7 @@ __includes [
"vmodel.nls" "vmodel.nls"
"vmodel-strategies.nls" "vmodel-strategies.nls"
"helper-functions.nls" "helper-functions.nls"
"bmodel.nls"
] ]
;; ;;
@ -43,8 +43,10 @@ to go
; move to a better spot (with different strategies) ; move to a better spot (with different strategies)
ask beekeepers ask beekeepers
[ if strategy = "with-collective-strategy" [ move-to with-collective-strategy ] [ if strategy = "with-collective-strategy"
if strategy = "with-blind-strategy" [ move-to with-blind-strategy ] ] [ let s with-collective-strategy
if any? spots with [ s = self ] [ move-to with-collective-strategy ] ]
if strategy = "with-blind-strategy" [ move-to with-blind-strategy ] ]
; collect honey and make money ; collect honey and make money
@ -270,7 +272,7 @@ CHOOSER
strategy strategy
strategy strategy
"with-collective-strategy" "with-blind-strategy" "with-collective-strategy" "with-blind-strategy"
1 0
@#$#@#$#@ @#$#@#$#@
## WHAT IS IT? ## WHAT IS IT?