Endgmame question

For lessons, as well as threads about specific moves, and anything else worth studying.
kvasir
Lives in sente
Posts: 1040
Joined: Sat Jul 28, 2012 12:29 am
Rank: panda 5 dan
GD Posts: 0
IGS: kvasir
Has thanked: 25 times
Been thanked: 187 times

Re: Endgmame question

Post by kvasir »

I find it hard to recognize iterative deepening in your description of your method. In iterative deepening we do a sequence of depth first search that are limited at increasing but fixed depths. For example a chess program using iterative deepening and alpha-beta pruning might search depths 13-20 , first completing a depth first search to depth 13 then restarting and doing a new search to depth 14, and so on. This is very counter intuitive, especially when oversimplified. On the other hand, in your description you seem to pick some "best" sequences of different lengths that don't have tenuki, then add some sequences with tenuki. Your example is just too small for me to guess what the exact method is but I don't recognize iterative deepening in the example.
dhu163 wrote:
kvasir wrote:Including how to handle ko's and ko threats.
I'm curious as to what you mean because I am partway through writing a paper on how to play a simple ko optimally(with some assumptions) that is more realistic than Tavernier's BGJ article. I am quite pleased to have solved and proved the problem when I thought it might not be solvable, so I hope it isn't well known.
What I meant was that there are a plenty of lessons out there that teach how to compute endgame values, ko values (as in the size of the ko threats needed in principle) or some generic exchanges by taking into account the number of moves being played -- without invoking miai counting. I'd link some online lessons but it takes time to find and it is never really presented with any pretense of mathematical rigor. I remember some lectures of Guo Juan on big endgames, I have also learned a lot from her associates(?) Mingjiu and Jiuju because the three used to (and maybe still) give free lectures on Sundays that sometimes ventured into ko fights from real games. Michael Redmond also ventures into move values all the time but I have seen him mention miai counting, not sure if that is replies to the audience or if he is a (not so) secret practitioner. Because I mentioned ko I felt need for some example involving ko but I might just have left it at "you can easily find very good lessons on calculating move values that never invoke the miai method under any name".

I find such lessons to be very similar to your example (as understood by me): you read the likely lines for black and white, then update for possibility of tenuki which means accounting for the average of two options at some depths. The value stated at the top-level always seems to use the convention of "x in sente / gote". Many endgames over 10-12 pts tends to be too complicated to do exactly (if they involve multiple tenuki), and in that case is often more about timing than the exact value. These are never calculated exactly and the same applies for anything that is clearly biggest or clearly sente, it is not calculated because it is just played.

I have never found good systematic studies on ko fights. It sometimes seem like pros have a new way to fight a ko every now and then. With the latest bots we can easily confirm that famous players were mistaken at times.
RobertJasiek
Judan
Posts: 6272
Joined: Tue Apr 27, 2010 8:54 pm
GD Posts: 0
Been thanked: 797 times
Contact:

Re: Endgmame question

Post by RobertJasiek »

Bots do not always play ko correctly. You have not found good systematic studies on ko fights because I think there still are none. Individual aspects are described but a systematic study is missing. (It is one of those things I want to do some time.)

"very good [online] lessons on calculating move values": ask yourself what they do not teach you. E.g., if they teach local evaluation, do they also teach global decisions better than just comparing local values? If they teach calculation of gote or sente, do they also verify by values that the type and therefore the values are correct? Do they actually show the iterative calculations of follow-ups? If they teach calculation of any local double sente's traditional difference value, this would indicate wrong teaching. Do they teach for how long play must be local, when it must be interrupted and do they verify the timing of interruption by values? Do their iterative calculations rely on sequences whose local alternation is interrupted at the right moments? Do they teach the value of positions aka count and the values of gains at all? I have yet to see teaching of traditional endgame values in more than basic shapes that would be correct and good.
John Fairbairn
Oza
Posts: 3724
Joined: Wed Apr 21, 2010 3:09 am
Has thanked: 20 times
Been thanked: 4672 times

Re: Endgmame question

Post by John Fairbairn »

You have not found good systematic studies on ko fights because I think there still are none. Individual aspects are described but a systematic study is missing
It is also my experience that this is true. In doing my new Go Seigen book I came across something I had never seen mentioned about ko before. Utterly trivial and easy to understand once pointed out, but it had never occurred to me, and apparently to no-one else in the many books I have read.

We talk about getting compensation for a ko fight. You lose the ko but you then you pick up something somewhere else to compensate. But in this game Go's opponent taught the young Go a thing or two. He got his compensation first, well before starting the ko, and then lost the ko. But he also got a free boundary play from the aji left over, AND got some more compensation several moves later, on the other side of the board. It all sounds like a conjuring trick, but it was beautifully simple in practice. I'm sure it must have happened many times before and since, but it was new to me, and I've never seen it covered in a book on kos. The overriding impression I was left with was: another of the many things pros know and amateurs don't even suspect. It wasn't a new technique or deep calculation. It was just a matter of a different mindset. Too hard to teach because it's so hard to change people's mindsets?
John Fairbairn
Oza
Posts: 3724
Joined: Wed Apr 21, 2010 3:09 am
Has thanked: 20 times
Been thanked: 4672 times

Re: Endgmame question

Post by John Fairbairn »

I have not read Shimada's endgame texts; given your earlier hints and his rules texts (of which I saw some in English), he might have described some basics or maybe a bit maths.
I'd recommend a bit of caution with your nuances here. You will recall that Emanual Lasker, in the throes of planning to go to Japan, said “The Japanese haven’t as yet produced a mathematician who compares with the best we can muster. I am convinced that we can, ultimately, beat them at go, the ideal game for a mathematical mind.” His go equal, Dueball (also a mathematician), did go to Japan and had to play Shusai on 8 stones.

The Japanese player who was most instrumental in promoting go in Germany was Fujita Goro. He was later to meet Einstein at Princeton. This visit was arranged by guess who, the Princeton-based Japanese mathematician Yano Kentaro. One of those Lasker was ignorant of. I do hope the phrase he was only a "professor at Princeton" will not join "he is only a Japanese 9-dan" in the go archives :) I can't comment on anyone at such stratospheric levels in maths or go, but our own Charles Matthews, who taught at Cambridge and Princeton, may be able to say something about how good Japanese mathematicians were.
dhu163
Lives in gote
Posts: 474
Joined: Tue Jan 05, 2016 6:36 am
Rank: UK 2d Dec15
GD Posts: 0
KGS: mathmo 4d
IGS: mathmo 4d
Has thanked: 62 times
Been thanked: 278 times

Re: Endgmame question

Post by dhu163 »

kvasir: I think my intended method is based on iterative deepening as you know it, though I am not familiar with i.d.

My main knowledge of miai counting was from Bill Spight's writings on SL and L19 so I was only changing the order in which move values are calculated, but the formula and method are the same.

Deiri counting requires comparing two board positions. For mathematical rigor that requires two settled positions where you know the score. So the plan is to compute all nodes to depth 1, then for each node play it out until the end of the game (alternating play is preferred but the method will converge whichever sequence of tenukis you choose, as long as you choose locally optimal play). Use that as an estimate for that node. Then compute to depth 2 and so on for increasing precision (Compare MCTS).

Another reason it may look unfamiliar was my use of the shortcut of assuming sente responses, a sort of lookahead. I didn't prove the moves were sente but in the first diagram, technically a full systematic method would require a proof.

If you want more details I suggest RJ's books.

Ko: I certainly cover compensation in my model, but only for simple kos. It sounds like you are talking about an approach ko or thousand year ko, though the model can be extended to cover that. Assuming I didn't make a mistake, you can look forward to it. Ko has been on my mind for many years since someone at the club complained they didn't understand ko and there was a debate between whether you should play large ko threats first or small threats. My intuition had a conclusion which I think I have been able to affirm.

I assume an ideal environment, so my setup is somewhat different from Berlekamp and Bill's whose papers on ko thermographs I still can't make sense of. However an RJ style of explicit simple gote environments is included in the model, though I admit I haven't managed to do so cleanly.
Last edited by dhu163 on Fri Oct 22, 2021 5:12 am, edited 3 times in total.
RobertJasiek
Judan
Posts: 6272
Joined: Tue Apr 27, 2010 8:54 pm
GD Posts: 0
Been thanked: 797 times
Contact:

Re: Endgmame question

Post by RobertJasiek »

I do not doubt that there have been good Japanese mathematicians (e.g. Teigo Nakamura https://www.dumbo.ai.kyutech.ac.jp/~teigo/GoResearch/ studied some advanced corridors as combinatorial games), physicists etc. I doubt that those studying endgame theory during the first half of the 20th century made more than a) basic contributions (regardless of how important they might have been in themselves) or b) theory more useful for go players than researchers in game theory.
Charles Matthews
Lives in gote
Posts: 450
Joined: Sun May 13, 2012 9:12 am
Rank: BGA 3 dan
GD Posts: 0
Has thanked: 5 times
Been thanked: 189 times

Re: Endgmame question

Post by Charles Matthews »

John Fairbairn wrote:
I have not read Shimada's endgame texts; given your earlier hints and his rules texts (of which I saw some in English), he might have described some basics or maybe a bit maths.
I'd recommend a bit of caution with your nuances here. You will recall that Emanual Lasker, in the throes of planning to go to Japan, said “The Japanese haven’t as yet produced a mathematician who compares with the best we can muster. I am convinced that we can, ultimately, beat them at go, the ideal game for a mathematical mind.” His go equal, Dueball (also a mathematician), did go to Japan and had to play Shusai on 8 stones.

The Japanese player who was most instrumental in promoting go in Germany was Fujita Goro. He was later to meet Einstein at Princeton. This visit was arranged by guess who, the Princeton-based Japanese mathematician Yano Kentaro. One of those Lasker was ignorant of. I do hope the phrase he was only a "professor at Princeton" will not join "he is only a Japanese 9-dan" in the go archives :) I can't comment on anyone at such stratospheric levels in maths or go, but our own Charles Matthews, who taught at Cambridge and Princeton, may be able to say something about how good Japanese mathematicians were.
The question of when Japanese mathematicians joined the mainstream of European/American professional mathematics has a fairly definite answer, I think. Takagi Teiji (高木 貞治) 1875–1960 did pioneering work in algebraic number theory (my field) after a period at Göttingen before WWI. After the work of Kunihiko Kodaira in algebraic geometry, Lasker's remark could be disregarded.

Lasker of course didn't have it right about go. I would regard attitudes to the traditional "mind games" in the European context, up to around 1920 and the rise of Soviet chess, as a sort of cultural history that might repay study. A Japanese visitor to Cambridge once asked me for help the use of "game" in some writings of T. E. Hulme, the poet. The usage of ideas like "formal game" and mathematics as one, and "language game" in Wittgenstein, really are odd to those who spend considerable time on chess and go, etc. When they cross over from pastimes and entertainment to another level of "seriousness", it is easy to get confused as to what is going on. British and Central European attitudes, for example, appear to me to have been quite different. But that's a long story.
gowan
Gosei
Posts: 1628
Joined: Thu Apr 29, 2010 4:40 am
Rank: senior player
GD Posts: 1000
Has thanked: 546 times
Been thanked: 450 times

Re: Endgmame question

Post by gowan »

Go and the various chess-like games can be considered as examples of Formal systems as in mathematical logic. A formal system consists of well formed formulas, axioms, and rules of inference. In the case of go the well formed formulas would be the legal positions in go, the only axiom is the empty position, and the rules of inference are the rules describing legal moves. The theorems in this formal system would be legal positions that arise from sequences of moves from an empty board.
Post Reply