|
Post by sparrowhawk on Jul 16, 2004 8:46:30 GMT
I've decided NOT to change the existing algorithm for v0.2, as it works (in the sense that it doesn't crash!) and I really want to get 0.2 out so that people can start testing all aspects of new functionality. However, what I will do alongside the 0.2 release is provide the battle source code to the testing community so that you can dissect it and hopefully it can be improved to the point where it is both stable and realistic. However, some caveats: - Any revised algorithm MUST be kept SIMPLE. This is a LOM type game after all.
- You refrain from hooting with laughter when you see the code! ;D I freely admit that it's far from perfect, probably over-engineered, and certainly flawed. It's grown organically from very humble beginnings (something like 50 lines) to over 400, so prepare yourselves! You'll need an editor that colour-codes the PHP syntax or you'll be lost!
- You'll need an understanding of basic Object-Oriented concepts, as objects are used, if only very sparingly.
- You do not make the source code public at all, to anyone outside of the testing group. There is too much info in there (table names, session variable names etc) that could be of use to hackers (I use the term "hacker" in the way the media have appropriated it, rather than it's correct, original sense!)
Your assistance in nailing this persistent bugbear once and for all will be very much appreciated and will earn those brave souls a special mention on the cerdits page! How's that for everlasting fame and glory .
|
|
Ringthane
Public Area Guest
Ardet nec Consumitur
Posts: 5,446
|
Post by Ringthane on Jul 16, 2004 9:03:29 GMT
Can we have lords with our names afterwards? ;D
|
|
|
Post by sparrowhawk on Jul 16, 2004 9:06:36 GMT
Don't you dare hijack this thread, Unbeliever. This is where the serious people hang out...
|
|
Ringthane
Public Area Guest
Ardet nec Consumitur
Posts: 5,446
|
Post by Ringthane on Jul 16, 2004 9:33:56 GMT
|
|
merlin
Public Area Guest
Posts: 19
|
Post by merlin on Jul 16, 2004 9:49:57 GMT
[/li][li]You refrain from hooting with laughter when you see the code! ;D I freely admit that it's far from perfect, probably over-engineered, and certainly flawed. [/quote] One's code is never perfect; I'm always far from happy with mine! However, one thing to take into account - you have a multi-player-online-game up an running, which people come and play every day - precious few coders, even the best of them, can br proud of that... Never make excuses for code that works and is beng used.
|
|
|
Post by sparrowhawk on Jul 16, 2004 10:27:09 GMT
One's code is never perfect; I'm always far from happy with mine! However, one thing to take into account - you have a multi-player-online-game up an running, which people come and play every day - precious few coders, even the best of them, can br proud of that... Never make excuses for code that works and is beng used. You wait until you see the code! OK, it's not that bad, it's just far from how I'd like it to be. Reminds me of the days when I used to work on large AS/400 systems for a major UK retail bank. Because the systems had been in place for so long and the coders had moved on to pastures new, we rarely removed anything. Comments were usually none-existent, documentation never updated beyond 1.0 status and thus hopelessly out of date. Thus typically changes would be bodges that were bolted onto the sides of the existing code. It worked, but it made maintenance harder and harder as time went by. Now I'm not saying that the battle algorithm is quite that bad, but it could be and should be leaner and simpler. Hopefully a fresh set of eyes (or three) can spot areas for improvement.
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 16, 2004 21:04:11 GMT
I agree with Chris: I'm NEVER pleased with my code after a while! As for help, you know the answer already.
|
|
|
Post by celebaglar on Jul 16, 2004 23:11:24 GMT
I have written enough code in my time to know that you never ever belittle someone else's code under any circumstances[1]. I suspect most of the code I've written is junk anyway. So, suggestions for improvement are good, ridicule is out of order. You won't get any of the latter from me. [1] - Though it's darned tempting to rip apart code when the author insists it's perfect. ;D
|
|
merlin
Public Area Guest
Posts: 19
|
Post by merlin on Jul 17, 2004 10:54:22 GMT
[1] - Though it's darned tempting to rip apart code when the author insists it's perfect. ;D Well now, that's fair game and expected!
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 17, 2004 11:06:59 GMT
Well now, that's fair game and expected! Now I know no one here will ever see any of my code! ;D But, anybody, be free to show us something! ;D ;D ;D
|
|
|
Post by sparrowhawk on Jul 20, 2004 16:11:05 GMT
Who would like the script emailed to them?
|
|
Matija
Morkin Member
The Turtle Moves!
Posts: 1,696
|
Post by Matija on Jul 20, 2004 16:34:51 GMT
Me. (i'll learn php )
|
|
Natmus
Morkin Admin
Fight the power!
Posts: 4,518
|
Post by Natmus on Jul 20, 2004 20:22:24 GMT
Who would like the script emailed to them? Yo! I'll take a "php for dummies"-book and know it all in 5 minutes. Then I'll save you, Jean-Yves
|
|
Ringthane
Public Area Guest
Ardet nec Consumitur
Posts: 5,446
|
Post by Ringthane on Jul 20, 2004 20:23:45 GMT
Three!
|
|
Perun
Public Area Guest
Issa (Vis) [1:76:24]
Posts: 2,506
|
Post by Perun on Jul 20, 2004 20:40:58 GMT
What? You didn't sent it to me already? ;D ;D ;D
|
|