Kiko Piris <[EMAIL PROTECTED]> writes:

> On 05/11/2007 at 22:30 +0100, Loic Dachary wrote:
>
>>   Only in source code, unfortunately. It's a bit tricky because you
>> need to create a python file that implements the rake policy. This
>> file is arbitrary python code, which is good for flexibility. It's
>> inconvenient for non-developers because it's not easy to tweak.
>> 
>>   If you're decide to experiment with it, I can outline how it works.
>> 
>>   Are you game ?-)
>
> OK, I could try it. I might even succeed if the code to program it’s not
> too complicated :)
>
> If not, it’s not a big deal. I set up the server just for fun and to be
> able to play some friendly games.
>
> Trying to set this up could be part of the fun :)

  Try this:

$ cat /etc/poker-network/pokerrake.py
class PokerRake:
    def __init__(self, game):
        pass

    def getRake(self, game):
        return 0

get_rake_instance = lambda game: PokerRake(game)

   you'll have a zero rake game.

   The idea is that poker-network will override the default class with
the get_rake_instance variable loaded from the first pokerrake.py file
found in the search path (space separated path in the <path> element
of poker.server.xml). 

   Let me know if that works.

   Of course you could try more fancy rake structures based on the
game argument. The game argument is a poker-engine instance that 
fully describes the state of the game.

   Cheers,

-- 
+33 1 76 60 72 81  Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to