[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Re: NiceRollerBot - python - take or drop after doubling
From: |
Øystein Johansen |
Subject: |
[Bug-gnubg] Re: NiceRollerBot - python - take or drop after doubling |
Date: |
Tue, 12 Oct 2004 19:50:51 +0200 |
User-agent: |
Mozilla Thunderbird 0.8 (Windows/20040913) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've made two new methods to the gnubg module.
gnubg.cfevaluate()
- ------------------
This takes the current position and evaluates it cubeful. It returns a
tuple of the different cubeful equities similar to the arDouble array in
C. I believe it's:
Cubeful equity assuming correct doubling strategy
Cubeful equity for "No double"
Cubeful equity for "Double/Take"
Cubeful equity for "Double/Drop"
In that order.
You have tree optional arguments. a board, a cubeinfo and a evalcontext.
gnubg.findbestmove()
- --------------------
This method takes the current board and current dice to and return a
tuple of 8 elements with the best move.
Example:
In the initial position the dice rolled is 65.
|>> gnubg.findbestmove()
(24, 18, 18, 13, 0, 0, 0, 0)
There is also 4 optional arguments, a board, a cubeinfo, a evalcontaxt
and a diceroll.
(Notice that the movefilter used is the eval movefilter. There is no
argument to the function that controls this.)
I will make a binary available soon. This binary will then include both
the pruning neural net from Joseph and the two new methods.
- -Øystein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBbBl76kDTFPhwyqYRArCFAJ0VQdXXwBq6qxaNs+geOI4vLOAvVQCfRzVm
isJrGyNL3AmM6M3v5P5UMv8=
=5DbA
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnubg] Re: NiceRollerBot - python - take or drop after doubling,
Øystein Johansen <=