Author Topic: Defence against enemy ties  (Read 471 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Defence against enemy ties
« on: September 12, 2014, 11:40:43 AM »
Is there a way for a bot to sense when a tie has been attached to it?
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Re: Defence against enemy ties
« Reply #1 on: September 12, 2014, 11:46:23 AM »
This works if the bot sees another bot that can shoot ties.

cond
 *.eyef 0 >
 *.reftie 0 >
start
 2000 .mkslime store
stop

It's just that keeping the slime up is very nrg consuming. So I was thinking it would be more economical if the bot doesn't create slime until a tie has been fired.
« Last Edit: September 12, 2014, 11:47:59 AM by Testlund »
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline MacadamiaNuts

  • Bot Destroyer
  • ***
  • Posts: 273
    • View Profile
    • http://www.franontanaya.com/blog/
Re: Defence against enemy ties
« Reply #2 on: September 12, 2014, 12:16:53 PM »
*.tiepres .deltie store

or

cond
*.numties 0 >
start
(do something)
stop
Sometimes you win, and sometimes you lose...

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Re: Defence against enemy ties
« Reply #3 on: September 12, 2014, 03:36:25 PM »
Thanks!  :)
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine