Code center > Darwinbots Program Source Code
Sentence Split
Numsgil:
Darwinbots' GUI is that way. There's sparse little checking to see if the values are absurd or not.
Zelos:
how do you mean absurd? could you give an exemple?
just of curiosity, what data file on db source is the file that "paint" all the boits and show what happens? not proccesing all the things, just paint the bots and shots as we see them.
Numsgil:
There are a series of commands that paint things graphiclly to the screen. I believe they are all in Form1.
DrawRob
DrawRobPer
etc.
They are all grouped together, shouldn't be difficult to find.
An absurd value would be 500000000 nrg per cycle to vegs. I don't think the program catches that.
Zelos:
there is nothing called Draw things.
Numsgil:
No, there isn't. But DrawRob should exist. I knowDrawRobPer exists.
Looked at your code, I'm really impressed. Only things I'd recommend:
1. Indenting. It's a style thing only, has no effect on the code, but it makes it more readable. Look at Darwinbots' code for examples of when you would indent or unindent.
2. You would be better off grouping code into their own Subfunctions, that themselves call smaller syub functions, etc.
So that your main code would look like:
--- Code: ---Setup
Do
CheckInput
UpdateGraph
loop while blah blah...
--- End code ---
Like that, it makes the program look more professional. In the end, you'll have a tree of functions, that all call smaller functions, that call smaller functions, etc.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version