Nothing fancy right now, fuseki is fixed at first 20 moves for 19x19, less for smaller boards.pnprog wrote:I had a try and it seems to work just fine now. By the way, I am curious how Pachi can decide when the fuseki is over.
Yes, that's correct.Code: Select all
[280000] best 49.0% xkomi 7.5 | seq Q16 L17 D4 C11 | can b Q16(49.0) Q17(48.5) K10(49.0) P16(49.0)
- 280000 is the total number of play outs/simulations reached up to that point?
- 49.0% is the winrate associated to the best move found up to that point?
- seq Q16 L17 D4 C11 indicates the best move so far is Q16 (the one associated with the 49.0% from above), and L17 D4 C11 the expected follow up?
- Q16(49.0) Q17(48.5) K10(49.0) P16(49.0) are the other moves considered by Pachi at this point? (alternative moves)
- They do not appear ordered from best to worst (Q17:48.5 < K10:49.0), so is it safe to order them from best to worst using the % value, or that order is somehow important and should be preserved? (lower % but more thoroughly tested with more play outs)
The candidates are ordered from best to worst, but for mcts best means most visited, the winrates are more indicative and can be out of order.
Yes, these lines are more of a summary, they only show the 4 best candidates and follow-up moves regardless of how deep the tree is. You can get the full picture by looking at the whole tree:
- The number of move of the follow up sequence seems to always be 3, regardless of how much thinking time I put in it. Is this a fixed parameters?
- The number of alternative moves seems to always be 3, regardless of how much thinking time I put in it. Is this a fixed parameters?
- Is there a way to get a follow up sequence for those moves as well? I noticed that for some of them, a follow up sequence can sometime be found in the other log lines above, but it might not be the most probable follow up I guess
Code: Select all
pachi -d4 -t =5000
[1000] best 62.8% xkomi 0.0 | seq K14 M15 F19 G19 | can w K14(62.8) M14(65.0) M15(56.6) J17(60.9) | 0.6Mb
[2000] best 63.4% xkomi 0.0 | seq K14 M15 M14 | can w K14(63.4) J17(66.6) M14(62.3) M15(58.7) | 1.1Mb
[3000] best 76.6% xkomi 0.0 | seq H8 O4 K8 | can w H8(76.6) K14(62.8) J17(65.9) M14(61.9) | 1.7Mb
[4000] best 77.3% xkomi 0.0 | seq H8 H4 H5 H3 | can w H8(77.3) K14(62.8) J17(65.9) M14(61.9) | 2.1Mb
[5000] best 76.7% xkomi 0.0 | seq H8 F2 J8 O4 | can w H8(76.7) K14(62.8) J17(65.9) M14(61.9) | 2.7Mb
(UCT tree; root black; extra komi 0.000000; max depth 7)
[pass] 0.693/5016 [prior 1.000/0 amaf 1.000/0 crit -0.693 vloss 0] h=0 c#=165 <857b68360000024f>
[H8] 0.768/2548 [prior 0.961/257 amaf 0.738/10099 crit 0.015 vloss 0] h=0 c#=165 <857b688b000002a4>
[F2] 0.746/657 [prior 0.056/177 amaf 0.751/4072 crit 0.000 vloss 0] h=0 c#=163 <857bae8000004899>
[J8] 0.740/154 [prior 0.944/180 amaf 0.760/1592 crit -0.000 vloss 0] h=0 c#=163 <857bb28c00004ca5>
[G6] 0.766/107 [prior 0.500/20 amaf 0.798/914 crit 0.020 vloss 0] h=0 c#=163 <857bb27d00004c96>
[G7] 0.727/77 [prior 0.056/180 amaf 0.731/234 crit 0.012 vloss 0] h=0 c#=161 <857bde5f00007873>
[G7] 0.854/96 [prior 0.722/36 amaf 0.807/886 crit -0.000 vloss 0] h=0 c#=163 <857bb28500004c9e>
[S15] 0.790/81 [prior 0.500/20 amaf 0.795/623 crit -0.102 vloss 0] h=0 c#=163 <857bb2b800004cd1>
[H4] 0.791/406 [prior 0.090/111 amaf 0.732/2750 crit -0.176 vloss 0] h=0 c#=163 <857bae95000048ae>
[H5] 0.859/191 [prior 0.908/109 amaf 0.850/707 crit -0.001 vloss 0] h=0 c#=163 <857bb1d000004be9>
...
If you want to use this in GoReviewPartner try json reporting:
Code: Select all
pachi -t =5000 reporting=json
{"move": {"playouts": 5064, "extrakomi": 0.0, "choice": "H8", "can": [[{"H8":0.792},{"F2":0.778},{"G6":0.831},{"G7":0.815}], [{"K14":0.603},{"L13":0.593},{"M13":0.627},{"K13":0.593}], [{"M15":0.603},{"L13":0.724},{"M13":0.778},{"K13":0.700}], [{"M14":0.627},{"M15":0.647},{"N15":0.596}]]}}