Bots and Simulations > Untagged bots

Slam Funk 1.0

<< < (3/8) > >>

Ta-183:
It sure does. That code is for Slam Funk 2, which will be released in a few days once I finish the code for it and get a new vision system built. I'll also be releasing Slam Funk 1.1 soon, an improvement on the original Slam Funk DNA where SF2 is based on new decision making, maintinence and IFFF code. Both will have improved vision, which will likely be borrowed and modified from an existing bot. Even with the current vision system hampering its potential, SF2 ought to be able to fight past most of the F3 league. It shares a shooting function with gimmick and a similar IFFF concept but my IFFF is entirely my own code.

Ta-183:
Quick boolean stack question. Would the following code work?


--- Code: ---cond
*condition*
*condition* and
*condition* and
*.health *.injured = not
*.situation *.eating = not and
start
ect.
--- End code ---

I want it so that the gene will only work if both of the last two conds are both false, along with the other stuff. Is this right?

Numsgil:
It would work as written.  But for "correctness" sake you want another "and" in there.  start normally "and"s all the bools on the bool stack together anyway, but if you try to expand it with another condition in the future you can confuse yourself.

Shasta:
You also may just want to replace the "= not"s with != it does the exact same thing.

Ta-183:
I got a chance to run a version of Slam Funk 2 a few minutes ago. It didn't work nearly at all. Only the genes retained from Slam funk 1.X seemed to work. I think I narrowed the problem down to my use of custom constants. Now, in the code above, I tried to define constants using 'def constant 2' for example. Now what I thought I was doing was setting .constant to 2. But I think what it really did was set .constant to MEMORY LOCATION 2. Is this accurate?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version