http://www.perlmonks.org?node_id=624391

msk_0984 has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Need a Strategy to work out
by Polonius (Friar) on Jul 02, 2007 at 08:43 UTC

    This is fairly obviously homework (Hint: If you want to disguise homework, you need to spell-check the text you've added at least as carefully as what you've cut-and-pasted), so you ought to be particularly clear about where you need help. We can all get stuck with homework, and just need a nudge in the right direction to get going again. Monks will be happy to give you that nudge, provided you're honest about it, and give them enough information to help.

    You say you need a "strategy", but the assignment is about testing three different "strategies". I suspect you're using the word "strategy" to mean something different, a strategy for comparing strategies - perhaps you could call it a "meta-strategy"?

    If I'm wrong, and you really want us to help with game-playing strategies, then you need to tell us what the game is. Even if I'm right, I think telling us what the game is would help us understand the context (though I accept the argument that it could cloud our thinking).

    Polonius
      Well, yes, it's obviously homework. So obviously homework ("I will give you bonus points if...") that I don't think it was necessary for him to say "this is homework".

      I'd like to see some of the additional information you suggested he add, too, and would gladly nudge if I have any ideas after seeing the details of where he (or his friend) is at.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Need a Strategy to work out
by GrandFather (Saint) on Jul 02, 2007 at 08:08 UTC

    How about you tell us something about what you've done so far? We tend not to do people's homework for them, but we do help out with specific issues you may have.

    I note that there is no mention of the game play mechanism nor the framework that would drive your code.


    DWIM is Perl's answer to Gödel
Re: Need a Strategy to work out
by fenLisesi (Priest) on Jul 02, 2007 at 08:02 UTC
    I don't see how you can have only two exclamation marks after Party Harderrr. Surely, partying harderrr is important enough to deserve at least three exclamation marks.
Re: Need a Strategy to work out
by chanio (Priest) on Jul 05, 2007 at 01:10 UTC
    I am not sure to understand your interesting question. But, I will try to help...

    Could you give an example by comparing your idea with a chess game?

    When you only know how to play with one piece alone, you might reach to an 'even' situation with an enemy. Then, you should use another piece to help your main piece. That might be the incentive...

    The goal is always to win the game, but you should have stronger goals related with their inminence: reach the middle of the field, get free from your threats, increase your power, widen your alternatives, etc. When you are close to loosing the game, your goals are only the inminent ones. And very few: survive! You should always be able to sort those goals and re-evaluate their benefits. These should redefine your strategies...

    If every helping piece could move freely with its own goal, then your sorting might be also full of namespaces, and more complex... So, it is always better to cooperate with your enemy and leave him move freely without reaching to a 'static' or 'even' situation.

    Do these make any sense? If so, I am glad to have helped you.

    • Landlords production is only eaten by landlords...

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Need a Strategy to work out
by jesuashok (Curate) on Jul 03, 2007 at 05:49 UTC