Darwinbots Forum
Code center => Suggestions => Old Suggestions Awaiting Programming => Topic started by: Botsareus on February 21, 2005, 04:16:15 PM
-
[you]"Ideas' Programming Status" does not talk about the code I gave Num for Robot Plasment[/you]; I have been thinking about the robot plassment itself for an oval Generating a random X and a random Y and then [you]making sure they are inside the oval not outside it [/you]is a difficult code to write.
Instead for the oval code you can generate a random "angel" and a number between 0 - 1 for the distance (lets call this n) , after the (sin, cos) from the angle is gatherd multiply sin * n * abs(x1 - x2) and cos* n * abs(y1 - y2)
B)
That should give you locations to place robots themselfs
-
Yeah, I forgot to add it to the Ideas status, I"ll do that now. It's hard to remember ones that don't have their own topic, ya know?
I almost started it several times, but then found a bug that needed to be worked out first. You should see it by the next public release.
-
ok thanks , btw from now on I start my own topic
-
Here it is , the actual plasment part of the oval part of my robot plasment control.
Num , download Now.....
Currently it plases a lot of dots instead of robots , but you get the idea....
-
Good stuff. Are you going to try to add it to the actual options.frm? The more work you can do yourself the easier it is for me and PY to include it. My own coding process is at a huge slump, I don't think I've added anything in over a week.
-
( I dont know were the other part of the code I sent you is [you]1[/you])
([you]2[/you] , The robots themselfs are part of another code incoded deep inside the system, so is the settings file code, thats why I am not messing with the chart codes at all..)
3. I hope you have not lost the other part of the code , is it someware in suggestions?
-
I am having a really bad feeling its on the old board someware, not sure...
-
I cant find the other code , Num you have it?
-
Here it is. (http://darwinbots.proboards20.com/index.cgi?board=general&action=display&num=1107583106).
Post #11. I'd link to post #11 directly, but I'm not sure how to do it on the old board.
-
I beat I was not feeling to well when I wrote that one , Ill post a better virsion of that in a sec.
-
[you]Here, this is a more complete virsion of the first code[/you], All you need to do now is put the first code , the other code posted in this tread, and DarwinBots Together.
***
Num , I know you want me to actualy start adding things myself to the DB source code , but I am worring about other things right now , And the hard parts of the DB source code are not that simple; Maybe someday I will learn it though, someday.