Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Tilthanseco

Pages: [1]
1
Bot Tavern / Random Bot
« on: August 05, 2012, 12:42:09 AM »
I took the random bot idea and used an internal random number generator instead of "rnd".

This way mutations can still affect the bot very well. I'm running this bot as a alga with a simple bot.

Regular Random Bot 0 to 1000
Code: [Select]
cond
start
1000 rnd 1000 rnd store
stop

Very Simple Internal Generator 0 to 999
Code: [Select]
'Environmental Seed
cond
*.robage 1 =
start
*.xpos *.ypos add 2 div 51 store
stop

'Location Generator
cond
start
*51 125 mult 31991 mod 51 store
*51 1000 mod 52 store
stop

'Value Generator to keep from Looping
cond
*52 51 !=
start
*51 125 mult 31991 mod 51 store *51 1000 mod *52 store
stop
P.S. Making a random number generator is hard... It took me most of the day to make a random enough one that was simple while limited to a state of 32000.
Many tries led to loops of often only 10 numbers.

2
Evolution and Internet Sharing Sims / Evobot Stops when Birthing
« on: July 06, 2012, 08:08:32 PM »
This bot will stop moving when it wants to repro, this curiously leads to many big berthas in the sim who sit in front of veggies they were eating but can't reach now. (other bots keep pushing veggies in front of them)

The problem I have is that I don't know how the bot is stopping. It has a .up and .shoot command that are always active, but when it wants to .repro, the .up command gets canceled somehow?
Here is the Original:
Code: [Select]
cond
start
100 .up store
-1 .shoot store
stop

cond
*.nrg 20000 >
start
30 .repro store
15 .aimdx store
stop
end
Evolved: 535 Generations, 42 Mutations
Code: [Select]
' Gene:  1
 cond
 start
 77 .up store
 -1 .shoot dec
 stop

'  Gene:  2
 start
 *.nrg 19819 >

' Gene:  3
 start
 42 .repro store
 store
 5 15

' Gene:  4
 cond
 *498 overbool

Is this behavior attributed to storing 0 in -1? "... -1 .shoot dec ... 42 .repro store store"

3
Bug reports / Quadratic Plant Energy 2.45.01 [False Alarm]
« on: June 06, 2012, 05:17:46 AM »
I don't think this setting is working in 2.45.01  :(

I'll have to stick with kilobody...

4
Bug reports / Regular Ties don't form with vision disabled 2.45.01
« on: June 06, 2012, 12:10:32 AM »
For some reason, I can't get regular ties to form when the bot's vision is disabled. In version 2.45.01

Attached is a save featuring different tie forming bots, none of them will form permanent ties.

5
Untagged bots / Animal_Resono_1.3 (F3)
« on: May 30, 2012, 04:44:01 PM »
One day I had the greatest idea, I should make a bot that was blind. I thought I should use echolocation as his main sense, and it is. Upon looking at the forums, I discovered he was unique, and he makes it to 15th in the F3 League.
I introduce the strongest F3 Blind Bot I have found, Animal Resono
It also beats Mister Magoo, and PhiNotPi's blind bots.
Version 1.0 also does. (which doesn't use ref)

Warning, I used Nums .shang fix (2) to make this.  http://forum.darwinbots.com/index.php/topic,1249.0.html

Code: [Select]
' Animal_Resono_1.2 (F3)(Tilthan) 05.06.12
' Also Blind Bot, Interesting Behavior

' This bot does not use any eyes (in practice) and can run with vision disabled
' It uses it's echolocation properties as conspec recognition, if hit by only one shot, friendly
' It is the only bot I know of that uses echolocation using shots
' A side effect of it's conspec is that it makes a mine field and plays pinball
' Changes 1.2 - Uses shot pings as long-distance conspec
'         1.1 - Uses ref values for further conspec and touch targeting, (Having eyes as priority for ref is annoying)

' Variables
def guess 50
def search 51
def detect 52

' Constants
def age 10
def power 32

' 1 Get Mom Tie, and try to make my eyef useless.
cond
 *.robage 0 =
start
 .tie inc
 1222 .eye5width store
 628 .eye5dir store
stop

' 2 Get Rid of Mom Tie
cond
 *.robage 1 =
start
 .deltie inc
stop

' 3 Get Away from Mom
cond
 *.robage .age <
 *.vel 180 <
start
 10 .dn store
stop

' 4 Find Food, Start Sonar
cond
 400 *.nrg div 5 add rnd 0 =
and
 *.guess 0 =
and
 *.robage .age >
start
 214 rnd 100 add .aimdx store
 -1 .shoot store
 .search inc
stop

' 5 Find Food, Get Sonar
cond
 *.shang 0 >
and
 *.robage .age >
start
 *.shang .aimdx store
 2 .guess store
 *.velup -1 mult .up store
 *.veldx -1 mult .dx store
 0 .search store
stop

' 7 Shoot at Food
cond
 *.guess 0 !=
start
 -6 .shoot store
 .power .shootval store
 .guess dec
stop

' 8 Migrate for more Food
cond
 *.search 600 >
 *.nrg 500 >
start
 -100 .up store
 0 .search store
stop

' 9 Unstick if stuck
cond
 *.fixed 0 >
start
 0 .fixpos store
stop

'''''''''''Better movement hopefully
' 10 Shot Front, move forward
cond
 *.shdn 0 !=
start
 *.up -10 add .up store
stop

' 11 Shot Back, move back
cond
 *.shup 0 !=
start
 *.up 10 add .up store
stop

' 12 Shot Right, Move Right
cond
 *.shdx 0 !=
start
 *.dx 10 add .dx store
stop

' 13 Shot Left, Move Left
cond
 *.shsx 0 !=
start
 *.dx -10 add .dx store
stop

' 14 Body Maintenence
cond
 *.nrg 1105 >
 *.body 1000 <
start
 100 .strbody store
stop

' 15
cond
 *.nrg 1000 <
 *.body 1010 > or
start
 100 .fdbody store
stop

' Fam Detector
cond
 *.shflav -1 =
 *.shflav -6 = or
start
 0 .timer store
 .detect inc
stop

' 16 If Fam Fired at Me, Move
cond
 *.shang 0 =
 *.timer 1 >
 *.detect 0 >
and
 *.robage 0 !=
start
 0 .guess store
 0 .detect store
 284 rnd 120 add .aimdx store
 -35 .up store
stop

' 17 Hit Fam Get Away
cond
 *.refup *.myup =
start
 0 .guess store
 0 .detect store
 284 rnd 120 add .aimdx store
 -35 .up store
stop

' 18 Hit Food, Eat Food--From EricL
cond
 *.refxpos 0 >
 *.refup *.myup !=
start
 *.refxpos *.refypos angle .setaim store
 -6 .shoot store
 .power .shootval store
stop

' 19 Reproduce
cond
 *.nrg 9000 >
and
 *.guess 0 =
and
 *.pleas abs 100 <
start
 -314 .aimdx store
 30 .repro store
stop

end

Edit: Replaced with version 1.2 which now is F3, but still is slightly better than 1.1 :)
Included are all three versions:
1.2 Refs
1.1 Info Shots, Refs
1.0 Info Shots, Meets Qualifications of Blind Bot Challenge

Pages: [1]