Petr Baudis [Fri, 18 May 2012 14:49:48 +0000 (18 16:49 +0200)]
fast_frandom() always returns float, not floating_t
Noticed by Michael Williams.
Petr Baudis [Fri, 18 May 2012 14:45:22 +0000 (18 16:45 +0200)]
JSON reporting: Report finally picked move
The 'move' line now includes a 'choice' field with the coordinate (or
'pass' or 'resign') instead of a 'best' field which was rather
misleading in this case.
Prompted by Jonathan Chetwynd.
Petr Baudis [Fri, 18 May 2012 14:23:42 +0000 (18 16:23 +0200)]
Revert "uct_genmove(): In case of json reporting, print a JSON final_decision message"
This reverts commit
de9b9974efe249918544e971d2d5a8c6791525a4.
Jonathan convinced me that final_decision is a rather ugly hack,
and maybe we can report this in JSON differently without too much
invasiveness.
Petr Baudis [Fri, 27 Apr 2012 00:09:30 +0000 (27 02:09 +0200)]
Merge branch 'master' of ssh://repo.or.cz/srv/git/pachi
Petr Baudis [Fri, 27 Apr 2012 00:09:22 +0000 (27 02:09 +0200)]
uct_genmove(): In case of json reporting, print a JSON final_decision message
Jean-loup Gailly [Sun, 22 Apr 2012 14:34:55 +0000 (22 16:34 +0200)]
Add option -c chat_file to support fancy replies to kgs-chat
Jean-loup Gailly [Sat, 21 Apr 2012 15:01:26 +0000 (21 17:01 +0200)]
Merge branch 'master' into derm10
Petr Baudis [Sat, 21 Apr 2012 13:29:50 +0000 (21 15:29 +0200)]
UCT setup_state(): Allow first move to be white, just emit a warning
Jean-loup Gailly [Fri, 20 Apr 2012 14:31:25 +0000 (20 16:31 +0200)]
Distributed engine: exclude random moves with very few playouts
This might fix http://files.gokgs.com/games/2012/3/31/pachi2-tuke.sgf
where pachi resigned while winning by 1.5.
Jean-loup Gailly [Fri, 30 Mar 2012 21:55:56 +0000 (30 23:55 +0200)]
board_effective_handicap: use first_move_value for h1 games
In http://files.gokgs.com/games/2012/3/30/pachi2-bathory.sgf pachi thought
it was leading up to the end even though first_move_value was 1.
Jean-loup Gailly [Fri, 23 Mar 2012 15:28:17 +0000 (23 16:28 +0100)]
uctp_generic_choose: fix determination of the second best move
In t-regress/games/2012-03-21-pachi2-Hujisawa-3.sgf pass was the best
move and nbest2 was never set.
Jean-loup Gailly [Fri, 23 Mar 2012 15:18:30 +0000 (23 16:18 +0100)]
uct_pass_is_safe: only require us to capture dead opponents
We can deadlock if we also require the opponent to capture our dead stones.
See example t-regress/games/2012-03-21-pachi2-Hujisawa-3.sgf
Several bugs are exposed by this example, this is the first of several fixes.
Jean-loup Gailly [Thu, 22 Mar 2012 08:48:23 +0000 (22 09:48 +0100)]
Fix compilation error from
16d9c54
Jean-loup Gailly [Thu, 22 Mar 2012 08:26:05 +0000 (22 09:26 +0100)]
MAX_PATTERN_DIST: 6 -> 7
This does not make a measureable difference against Fuego but
could be helpful against humans.
Petr Baudis [Wed, 21 Mar 2012 22:18:17 +0000 (21 23:18 +0100)]
[FEAT_CAPTURE] payloads: Include countstones payloads only in feature_payloads() and if enabled
Petr Baudis [Wed, 21 Mar 2012 22:15:30 +0000 (21 23:15 +0100)]
feature_payloads(): Take pattern_setup inst. of pattern_config as first parameter
Petr Baudis [Wed, 21 Mar 2012 22:13:14 +0000 (21 23:13 +0100)]
pattern.c: Introduce CAPTURE_COUNTSTONES_MAX
Joe Moudrik [Wed, 21 Mar 2012 19:41:16 +0000 (21 20:41 +0100)]
tools/sgf2gtp.py: Extended description, minor commandline option rename.
Joe Moudrik [Wed, 21 Mar 2012 12:34:26 +0000 (21 13:34 +0100)]
tools/sgf2gtp.py: alternative implementation of SGF to GTP converter
which takes SGF variants into consideration. Only the main variant is
played.
Joe Moudrik [Wed, 21 Mar 2012 06:57:30 +0000 (21 07:57 +0100)]
Merge branch 'master' into jmhack
Petr Baudis [Wed, 21 Mar 2012 02:56:57 +0000 (21 03:56 +0100)]
patternscan: Fix crash when only a single game (or small) is fed in
The pattern for the first move in first game is not added, causing an assertion failure.
Joe Moudrik [Tue, 20 Mar 2012 14:14:28 +0000 (20 15:14 +0100)]
Merge branch 'master' into jmhack
Joe Moudrik [Tue, 20 Mar 2012 14:06:46 +0000 (20 15:06 +0100)]
pattern.[ch]: Added CAPTURE feature counting number of stones.
Petr Baudis [Tue, 20 Mar 2012 13:09:00 +0000 (20 14:09 +0100)]
tools/pattern_byplayer.sh: Fix indentation
Petr Baudis [Tue, 20 Mar 2012 13:08:25 +0000 (20 14:08 +0100)]
Merge remote-tracking branch 'origin/jmhack'
Joe Moudrik [Mon, 19 Mar 2012 11:38:53 +0000 (19 12:38 +0100)]
tools/pattern_byplayer.sh: Minor bugfix, enclose var in "".
Petr Baudis [Sun, 18 Mar 2012 10:37:05 +0000 (18 11:37 +0100)]
Merge branch 'ladders'
Petr Baudis [Sun, 18 Mar 2012 10:30:35 +0000 (18 11:30 +0100)]
MAX_PATTERN_DIST: 14 -> 6
Performance should be similar and we dramatically reduce number of
collisions and somewhat lower memory usage. The next step is to
regenerate spatial dictionary and main pattern file, which will be
slightly laborous and I will first solve collisions in a more reasonable
way.
Petr Baudis [Sat, 17 Mar 2012 22:35:49 +0000 (17 23:35 +0100)]
t-regress: Add 2012-03-15-pachi2-Leech.sgf
Petr Baudis [Sat, 17 Mar 2012 18:22:07 +0000 (17 19:22 +0100)]
Ladders: Set new defaults that fix most testcases and do not slow down Pachi
Petr Baudis [Sat, 17 Mar 2012 17:39:44 +0000 (17 18:39 +0100)]
t-regress: Add 2012-03-16-IMC-pachi2.sgf
Petr Baudis [Sun, 11 Mar 2012 18:35:28 +0000 (11 19:35 +0100)]
Merge remote branch 'origin/master' into ladders
Jean-loup Gailly [Sun, 11 Mar 2012 18:02:52 +0000 (11 19:02 +0100)]
t-regress: Add 2011-06-09-jinen-pachi30s-2.sgf
Jean-loup Gailly [Sun, 11 Mar 2012 11:49:41 +0000 (11 12:49 +0100)]
Avoid rave bonus for all ko threats not just the first one.
Jean-loup Gailly [Sat, 10 Mar 2012 23:26:15 +0000 (11 00:26 +0100)]
Give 0 or negative rave bonus to ko threats before taking the ko.
Joe Moudrik [Wed, 7 Mar 2012 12:13:47 +0000 (7 13:13 +0100)]
tools/pattern_byplayer.sh: Fixed attribute parsing when multiple atributes on one line.
Petr Baudis [Fri, 24 Feb 2012 19:52:12 +0000 (24 20:52 +0100)]
Merge remote branch 'origin/master' into ladders
Petr Baudis [Fri, 24 Feb 2012 18:18:08 +0000 (24 19:18 +0100)]
Merge branch 'master' of ssh://repo.or.cz/srv/git/pachi
Petr Baudis [Fri, 24 Feb 2012 16:27:47 +0000 (24 17:27 +0100)]
uct_search_result(): Verbose debug print in case pass is considered unsafe
Sometimes, Pachi mysteriously refuses to pass and it is not a reproducible bug; maybe this will help shed some light on it?
Petr Baudis [Thu, 23 Feb 2012 15:55:05 +0000 (23 16:55 +0100)]
tools/pattern_getdrops.pl: Tool for learning patterns for unexpected moves
Petr Baudis [Thu, 23 Feb 2012 15:48:36 +0000 (23 16:48 +0100)]
tools/kgslog2gtp.pl: Tool for converting kgsGtp log to extended GTP stream
Petr Baudis [Thu, 23 Feb 2012 15:45:36 +0000 (23 16:45 +0100)]
tools/pattern_bayes_gen.sh: Allow pattern harvesting from stdin
Petr Baudis [Sun, 19 Feb 2012 01:31:36 +0000 (19 02:31 +0100)]
Patternscan play: If aux. argument is 0, do not generate pattern match on this play
Petr Baudis [Sun, 19 Feb 2012 01:31:11 +0000 (19 02:31 +0100)]
GTP play: Add support for a trailing engine-specific argument
Petr Baudis [Fri, 10 Feb 2012 22:05:50 +0000 (10 23:05 +0100)]
Merge branch 'master' of ssh://repo.or.cz/srv/git/pachi
Petr Baudis [Fri, 10 Feb 2012 22:01:27 +0000 (10 23:01 +0100)]
Spatial: Deal gracefully with databases of spatials with too large radius
This will allow easy experiments with finding the optimal MAX_PATTERN_DIST.
Petr Baudis [Fri, 10 Feb 2012 18:18:27 +0000 (10 19:18 +0100)]
pattern_pdict_init() sphcachehit: Use calloc2(), we need initialized memory
Petr Baudis [Fri, 10 Feb 2012 18:17:37 +0000 (10 19:17 +0100)]
Patterns: Use unsigned where appropriate
Petr Baudis [Thu, 9 Feb 2012 23:46:39 +0000 (10 00:46 +0100)]
Spatial: Accurate analysis of hashing function performance
Petr Baudis [Sun, 22 Jan 2012 23:02:34 +0000 (23 00:02 +0100)]
strcasestr(): Custom implementation for WIN32
Pointed out by linfk.
Petr Baudis [Sun, 22 Jan 2012 22:46:47 +0000 (22 23:46 +0100)]
UCT Plugins: Act dummy on WIN32
Petr Baudis [Sun, 22 Jan 2012 22:41:21 +0000 (22 23:41 +0100)]
Makefile: Special WIN section
Petr Baudis [Sun, 22 Jan 2012 19:09:22 +0000 (22 20:09 +0100)]
Use appropriate socket includes on WIN32
Patch by linfk.
Petr Baudis [Sun, 22 Jan 2012 19:07:57 +0000 (22 20:07 +0100)]
logline(): Use inet_ntoa() instead of inet_ntop() on WIN32
Pointed out by linfk.
Petr Baudis [Sun, 22 Jan 2012 19:06:50 +0000 (22 20:06 +0100)]
time_sleep(): WIN32-specific implementation without nanosleep()
Patch by linfk.
Petr Baudis [Sun, 22 Jan 2012 19:05:18 +0000 (22 20:05 +0100)]
util.h: Include WIN32 compatibility wrappers for sleep() and __sync_fetch_and...()
Pointed out by linfk.
Petr Baudis [Sun, 22 Jan 2012 18:56:17 +0000 (22 19:56 +0100)]
Get rid of alloca() usage - non-portable
Pointed out by linfk.
Petr Baudis [Thu, 19 Jan 2012 01:07:30 +0000 (19 02:07 +0100)]
Merge branch 'master' into ladders
Petr Baudis [Thu, 19 Jan 2012 01:01:48 +0000 (19 02:01 +0100)]
is_middle_ladder(): Also test for initial escape by counter-capturing
Petr Baudis [Thu, 19 Jan 2012 01:01:16 +0000 (19 02:01 +0100)]
middle_ladder_walk(): Take next escape move as a parameter
Petr Baudis [Thu, 19 Jan 2012 01:00:25 +0000 (19 02:00 +0100)]
is_border_ladder(): Fix shortage of libs test
Petr Baudis [Thu, 19 Jan 2012 00:59:47 +0000 (19 01:59 +0100)]
UCT prior prune_ladders: Do not prune during ko fights
Petr Baudis [Tue, 17 Jan 2012 17:46:22 +0000 (17 18:46 +0100)]
UCT json: Include PVs for all cans instead of single seq record
Petr Baudis [Tue, 17 Jan 2012 17:30:48 +0000 (17 18:30 +0100)]
UCT jsonbig: Include information about the board coloring
Petr Baudis [Tue, 17 Jan 2012 17:13:13 +0000 (17 18:13 +0100)]
UCT avg_score: Track avg score of last move search explicitly in the tree
Petr Baudis [Tue, 17 Jan 2012 17:02:19 +0000 (17 18:02 +0100)]
Merge branch 'json'
Petr Baudis [Tue, 17 Jan 2012 13:40:15 +0000 (17 14:40 +0100)]
UCT prior prune_ladders: New setting for completely removing ladder moves from the tree
Petr Baudis [Tue, 17 Jan 2012 04:28:11 +0000 (17 05:28 +0100)]
Merge remote branch 'origin/ladders'
Petr Baudis [Tue, 17 Jan 2012 04:18:44 +0000 (17 05:18 +0100)]
group_atari_check(): Save 1pt ko if it protects an eye
Petr Baudis [Tue, 17 Jan 2012 04:05:41 +0000 (17 05:05 +0100)]
Moggy: New side pattern for making eyes
Petr Baudis [Tue, 17 Jan 2012 04:01:59 +0000 (17 05:01 +0100)]
t-regress: Add 2012-01-17-pachi2-Soromon-3.sgf
Petr Baudis [Tue, 17 Jan 2012 03:33:25 +0000 (17 04:33 +0100)]
New middle ladder reader, using temporary boards
Petr Baudis [Tue, 17 Jan 2012 03:30:23 +0000 (17 04:30 +0100)]
Moggy middle_ladder: Fix interaction of priors and test_pattern3_here()
Petr Baudis [Mon, 16 Jan 2012 21:02:02 +0000 (16 22:02 +0100)]
is_middle_ladder(), wouldbe_ladder(): Pass group information
Petr Baudis [Mon, 16 Jan 2012 20:16:00 +0000 (16 21:16 +0100)]
Moggy middle_ladder: Support for turning off middle ladder reading
We plan to switch to a completely different (much more expensive but
more accurate) ladder reading algorithm, which will not be really usable
in playouts. So how much will we hurt ourselves by removing this from
playouts?
Petr Baudis [Mon, 16 Jan 2012 18:52:44 +0000 (16 19:52 +0100)]
t-regress by-ladders: Mark correctly detected ladders as intermittent
I.e. our ladder heuristic actually correctly detected the ladder, but it
did not keep us from considering the move anyway since the prior
discouragement is not enough.
Petr Baudis [Mon, 16 Jan 2012 18:48:11 +0000 (16 19:48 +0100)]
middle_ladder_walk(): Add extra debug prints
Petr Baudis [Mon, 16 Jan 2012 18:03:46 +0000 (16 19:03 +0100)]
middle_ladder_walk(): Allow alternative near-edge termination of ladders
Petr Baudis [Mon, 16 Jan 2012 15:58:31 +0000 (16 16:58 +0100)]
Merge branch 'patterns'
Petr Baudis [Mon, 16 Jan 2012 15:58:28 +0000 (16 16:58 +0100)]
README: Refer to pachi.or.cz/pat/ wrt. patterns
Petr Baudis [Mon, 16 Jan 2012 15:27:51 +0000 (16 16:27 +0100)]
UCT pattern prior: -1000 -> -400 based on Jean-loup's tuning
-1000 is very bad on a cluster. With 10min S.D. or even 20min S.D.
single-threaded on a modern CPU, -1000 is best, however - we will need
to come up with some auto-default mechanism here.
Petr Baudis [Mon, 16 Jan 2012 14:41:24 +0000 (16 15:41 +0100)]
Our falseeye branch fixes falseeye misevaluations
Petr Baudis [Mon, 16 Jan 2012 13:40:39 +0000 (16 14:40 +0100)]
Merge branch 'master' into falseeye
Petr Baudis [Mon, 16 Jan 2012 02:37:09 +0000 (16 03:37 +0100)]
Merge branch 'master' of ssh://repo.or.cz/srv/git/pachi
Petr Baudis [Mon, 16 Jan 2012 02:36:29 +0000 (16 03:36 +0100)]
t-regress: Add 2011-07-28-pachi2-pkunzip-2.sgf
Petr Baudis [Mon, 16 Jan 2012 01:54:26 +0000 (16 02:54 +0100)]
t-regress: Add 2011-08-09-pachi2-BlueSpark.sgf
Petr Baudis [Mon, 16 Jan 2012 01:41:26 +0000 (16 02:41 +0100)]
t-regress: Add 2011-08-08-Dallas-pachi2-2.sgf
Petr Baudis [Mon, 16 Jan 2012 01:34:34 +0000 (16 02:34 +0100)]
t-regress: Add 2011-08-09-somrak-pachi2-2.sgf
Petr Baudis [Mon, 16 Jan 2012 00:59:23 +0000 (16 01:59 +0100)]
t-regress: Add 2011-06-18-dorabon-pachi2-4.sgf
Petr Baudis [Mon, 16 Jan 2012 00:55:05 +0000 (16 01:55 +0100)]
t-regress: Add 2011-07-28-pachi2-Novicer.sgf
Petr Baudis [Mon, 16 Jan 2012 00:52:01 +0000 (16 01:52 +0100)]
test-game.sh: Ignore GC lines not beginning with a number
Petr Baudis [Mon, 16 Jan 2012 00:43:03 +0000 (16 01:43 +0100)]
t-regress: Add 2011-08-24-StoneGrid-pachi2.sgf
Petr Baudis [Mon, 16 Jan 2012 00:40:45 +0000 (16 01:40 +0100)]
t-regress: Add 2011-09-04-pachi2-stv.sgf
Petr Baudis [Mon, 16 Jan 2012 00:36:38 +0000 (16 01:36 +0100)]
t-regress: Add 2011-08-12-xiaosugi-pachi2.sgf
Petr Baudis [Mon, 16 Jan 2012 00:33:32 +0000 (16 01:33 +0100)]
t-regress: Add 2011-06-13-pachi30s-Jep.sgf
Petr Baudis [Mon, 16 Jan 2012 00:27:19 +0000 (16 01:27 +0100)]
t-regress: Add 2011-06-10-pachi30s-samba-2.sgf
Petr Baudis [Mon, 16 Jan 2012 00:22:11 +0000 (16 01:22 +0100)]
t-regress 2011-06-05-Zen19-pachi2.sgf: Add extra test for falseeye
Petr Baudis [Mon, 16 Jan 2012 00:20:12 +0000 (16 01:20 +0100)]
t-regress: Add 2011-06-09-botkiller2-pachi30s.sgf
Petr Baudis [Mon, 16 Jan 2012 00:13:42 +0000 (16 01:13 +0100)]
t-regress: Add 2011-01-15-pachi2-rollingon.sgf
Petr Baudis [Mon, 16 Jan 2012 00:10:20 +0000 (16 01:10 +0100)]
t-regress: Another new classification 'dead'