Code center > Suggestions
Arrays other topic
Botsareus:
Dim memory(1000) as Intager 'this actualy already Exists in the program
Do '<--- this loop is the robot stack loop itself
memory(0) = 0
Do
memory(memory(0) + 100) = 999 - memory(0)*2 '<--- inpossible in the current virsion
If memory(0) > 100 Then Exit Do
Loop
Loop
***Can you later add the ability for the DNA to store values in arrays , not in memory one by one
***And Robots will be able to mutate all this stuff naturaly
***THE ABOVE CODE WHEN WRITTEN IN DB DOES NOT USE ANY NEW LOOPS , IT CAN USE THE Cycling of the program itself as a loop. That makes even more sense because now a robot takes more time to store a bigger erray
Botsareus:
ok I think what I am talking about is in the program already ex:
--- Quote ---*.32 20 >
--- End quote ---
is a pointer from memory 32, is it greater then 20 ?
Therfore please include that it will mutate also; naturaly by the program: "Bots use there own memory to think , for once"
Am I correct some ? Am I wrong some ? , whats going on?
Numsgil:
A quick note:
"*32", not "*.32"
PurpleYouko:
--- Quote ---ok I think what I am talking about is in the program already ex:
--- Quote ---*.32 20 >
--- End quote ---
is a pointer from memory 32, is it greater then 20 ?
Therfore please include that it will mutate also; naturaly by the program: "Bots use there own memory to think , for once"
Am I correct some ? Am I wrong some ? , whats going on?
--- End quote ---
Yes it will mutate naturally by the program.
:D PY :D
Botsareus:
OK MY FURTHER WORK/EXPERIMINTATION WITH ARRAYS/MATH :
cond
*20
0
=
start
20
21
store '21 is the pointer to memory location 20
1
22
store
22
23
store '23 is the pointer to memory location 22
stop
cond
start
20
inc
stop
cond
*20
100
>
start
0
*21
store
stop
end
PROBLEM :
WHEN I ADDED :
--- Quote ---1
22
store
22
23
store '23 is the pointer to memory location 22
--- End quote ---
THIS STOPED WORKING :
--- Quote ---20
inc
--- End quote ---
ANY ONE KNOW A SOLUTION?
Navigation
[0] Message Index
[#] Next page
Go to full version