Re: Rule-based AI in C



On 12 Lut, 16:10, copx <c...@xxxxxxxxx> wrote:
Ido Yehieli wrote:
On Feb 12, 2:58 pm, copx <c...@xxxxxxxxx> wrote:
You can implement the same kind of logic (i.e. run away after steal)
using my framework. Making rules dependent on other rules is indeed
not a feature, though. As I wrote in the original post, I actually
consider the minimal feature set a virtue.

I think what Jakus was trying to say (and I agree): what it's doing is
simple enough so that it doesn't seem cost efficient to learn your
"framework" and fit ones code/ideas into its state of operation rather
than just write it oneself.

Well, there is very little to learn. You should be able to use it
right away. Surely you can implement the same algorithm in a few
minutes, but why should you if a completely free implementation
is already available?

Because when writing your own implementation, you understand the
problem better. See, I got a really fast and efficient floodfill
algorithm once, which I needed for checking the caverns'
connectedness. I could use it right away since it was a matter of
changing two or three variables' names to the ones used in UR.
Nonetheless, writing it myself helped me to fully understand it and
now I'm pretty sure I'd be able to write a similar thing anytime.
Plus, I know exactly how my game works.

I'm not implying that your framework is too complicated to understand
it fully just by looking at the code and reading your explanation.
What I want to say is that writing your own code is usually better
than using fragments of someone else's.

Mingos
.



Relevant Pages

  • Re: Rule-based AI in C
    ... Making rules dependent on other rules is indeed ... As I wrote in the original post, ... consider the minimal feature set a virtue. ... "framework" and fit ones code/ideas into its state of operation rather ...
    (rec.games.roguelike.development)
  • Re: Rule-based AI in C
    ... Making rules dependent on other rules is indeed ... consider the minimal feature set a virtue. ... "framework" and fit ones code/ideas into its state of operation rather ...
    (rec.games.roguelike.development)
  • Re: Getting validator error message to appear without using page.validate
    ... the 1.1 framework, btw...) ... After some googling, that appears to be a asp.net 2.0 feature. ... anyway to do this in 1.1 without just writing out my own error message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: OODesign - OPF, design pattern
    ... What constantly kept getting in my way was the fact, that UI controls ... is exactly what it takes - writing wrappers and reinventing. ... The truth is, that once you have written an adapter framework for your favourite widget set, you have written it once and for all; it gets used over and over again. ... OPFs are but a small part of OO design. ...
    (borland.public.delphi.non-technical)
  • Re: PHP Framework w/ mysql support
    ... If i where you i would not bother about downloading and selecting a framework for something as simple as what you want. ... While you are writing the code for the first page, already look for existing code that did the same or a similar thing as you are currently writing. ... Before you start refactoring, test your code. ... For the rest just repeat the process of writing functions, ...
    (alt.php)