Hex strategy book Hex, Havannah

61 replies. Last post: 2019-03-12

Reply to this topic Return to forum

Hex strategy book
  • HappyHippo at 2019-01-08

    Here it is

    I mentioned in a previous thread that I was working on a book on hex strategy. I don’t want to say that it’s completely finished, but it’s finished enough to post.

    There’s a lot of hex knowledge that many of the players here clearly know, but which hasn’t been written down in a systematic way anywhere. My goal here is to make that information available to everybody. The book starts at the novice level and gets progressively more advanced. I would guess that players up to around the 2050 level could learn something from this.

    Please note that all the diagrams in the book are interactive: you can try out variations on the boards, and moves in the text are linked to the diagrams.

    The book is best viewed on a desktop or laptop; it should work on mobile, but there’s not a lot of room on a cellphone screen to fit diagrams

    Comments/suggestions welcome

  • Galdian at 2019-01-08

    WOW!
    Can’t find the words, how much I admire you and your work!
    And now I also can’t find any excuses to be such a weak Hex player, will have to read it through and through and aim for better results ;)

  • gzero_bot at 2019-01-08

    Yes WOW!  This is amazing, really looking forward to reading this (well me, not the bot).  Thanks so much! 

  • Force majeure at 2019-01-08

    Looks amazing, looking forward to learn something new!

  • struggler at 2019-01-08

    Just WOW!!!

    From the programist side – how (with what language/library/framework) did you do that cool interactive graphs?

  • HappyHippo at 2019-01-08

    Thanks everyone

    struggler: no libraries or frameworks. The diagrams are svgs, you can attach DOM event listeners (such as onclick) to svg elements, the rest is handled in javascript. The diagrams themselves are generated by a python script I wrote.

  • blikdak at 2019-01-08

    Cool! Thanks so much for making this available.

  • eobllor at 2019-01-08

    Impressive! In particular, very nice diagrams and clear (at least those read) explanations!

  • Arek Kulczycki at 2019-01-09

    Excellent work HappyHippo! The paper is truely neat and beautiful!

    I’ve seen only Basic Concepts chapter so far, but in particular I love the Interior Templates paragraph where you have used some nice names to use in future.

    I also like how White is “her” :)

  • Christian K at 2019-01-09

    Very impressive, good job.

  • HappyHippo at 2019-01-09

    I should thank Tom Ace for inspiring me to write this. Way back in 2013, Tom posted a thread suggesting that a book be written about Hex. I thought it was a great idea and even started writing a bit at the time, but I had a phd to work on so I put it aside. I finished my dissertation in August 2017 and started writing again in my spare time until I finished it late this fall. After some proofreading I put it online. It’s hard to believe it’s been 5 years since Tom posted that thread!

  • Giupiter at 2019-01-09

    Bravo HappyHippo, really a great job!!!

  • David J Bush at 2019-01-09

    I use Linux Mint 19 64-bit. The interactive moves and cells work for me on Chromium, but not on Firefox 64.0 64-bit. I have the Script Safe extension on Firefox, but I clicked to trust mseymout.ca If there is some way I can send you diagnostic information, for example with Web Inspector or debugger, please let me know.

    Great work BTW!

  • David J Bush at 2019-01-09

    mseymour.ca sorry

  • HappyHippo at 2019-01-09

    Thanks for the info, I sent you a followup message

  • Carroll ★ at 2019-01-10

    Thank you for this amazing book !

    @David, the interactive diagrams work for me on Firefox 64.0 64-bit with NoScript allowing mseymour.ca.

  • David J Bush at 2019-01-10

    Thanks to Happy Hippo’s help, the move lists and board cells are now clickable for me.

    BUT I noticed a minor issue with the buttons on the side. The C button looks okay, but the other four are all black (or ghosted grey where appropriate.) Their mouseover text works, though. Maybe I need to install some special font?


  • David J Bush at 2019-01-10

    Uh sorry that issue is unique to me and will be resolved soon.

  • HappyHippo at 2019-01-10

    David, the issue due to the test page I sent you having a different url (hexstrat0_test.html) than an internal style reference (hexstrat0.html#markerArrow). This shouldn’t be an issue when I put out the update.

  • shalev at 2019-01-10

    Great work, this is awesome!

  • Galdian at 2019-01-18

    I had a lot of problems trying to understand, how to effectively play Hex, playing and learning on my own. After reading only the “Basic concepts” and half of the “Tactics” chapter, I’ve tried to play some games on PlayOK and already had very good results, overplaying some players with tons of games played (in one case it was a pity, that the guy who spent his time to play over 20.000 games was losing most of his games against me, and I made it only due to the basic knowledge gained from the guide).

    This guide was really needed to make the game more friendly for new players. I can’t say at this point, that I understand the game, but I already can see and understand some patterns, therefore it starts to be a pleasure to play the game (earlier it was mostly frustration ;)).

    One more time I would like to thank you for it and I would like to encourage everyone to share this great guide, it deserves to be readen by every Hex player, especially new one :)

  • HappyHippo at 2019-01-18

    That’s great to hear! One of my goals with this was to make Hex more accessible to new players, and it sounds like it’s working

  • Nagy Fathy ★ at 2019-01-21

    Yeah, great effort!

    Thank you for making it for free. I am looking forward reading it carefully, and have some understanding for this game! 

  • lazyplayer at 2019-01-21

    HappyHippo, I’ve read some pieces. Very good work! Congrats.

  • lazyplayer at 2019-01-21

    Finally we’ve a good default that we can use for new players.

  • HappyHippo at 2019-01-23

    Thanks guys!

    Lazy: which sections did you check out? Hopefully there were no errors.

  • lazyplayer at 2019-01-23

    Happy, I’ve only rapidly scrolled over the more “advanced” sections, played some of the examples. No evident errors.

    I think you made a good job of summarizing current practice, which unfortunately, it’s not particularly strong at all. I always feel clueless about initial stones.


  • lazyplayer at 2019-01-23

    When I’ve time I plan to try again with the bots, they’re the only players playing consistently strong openings. i think we can do better, but alas, at last tournament, I’ve completely failed.

  • lazyplayer at 2019-01-23

    More precisely, I think leela plays consistent openings. Gzero plays bad initial stones but anyway it’s good enough to grab some wins.

  • vieuxsac at 2019-01-26

    Thanks so much HH for making this available!Look forward to reading the book and becoming a better player.

  • HappyHippo at 2019-01-29

    I wrote two new sections, one on broad and narrow fronts in the strategy chapter, and a more extensive one on climbing in the advanced tactics chapter. I also made some more minor edits.

  • David J Bush at 2019-01-30

    Diagram 162 seems to have a problem. The accompanying text correctly talks about 1,i2 for white, but when I go back to the beginning ot 162 and click forward I see 1.e7 which does not make sense. If you just delete 162 and re-number the rest of the diagrams, I believe the problem would be fixed.

  • HappyHippo at 2019-01-30

    Hmm, I can’t seem to reproduce the problem. You’re referring to the text that runs “Mindful of the threat that (C) poses in the corner, she plays 1. i2” right? Diagram 162 is supposed to just set up the situation, it should be empty (no moves), the moves in the text are supposed to be on diagram 163. Do you have a screenshot?

  • David J Bush at 2019-01-30

    Sorry my mistake again. I clicked on the board just to activate it, and it made a move in the cell I clicked.

  • HappyHippo at 2019-01-30

    Hmm, I wonder if there is a way to visually distinguish moves made by the user from those that are part of the diagram...

  • z at 2019-01-30

    Fantastic book! Thank you for putting so much effort into the research and writing.

    > Hmm, I wonder if there is a way to visually distinguish moves made by the user from those that are part of the diagram...

    Maybe put a tiny dot in the middle of a piece added by the user? Or darken/lighten its background cell?

  • lazyplayer at 2019-01-31

    HapyHippo, I’ve been reading it again. I’ve spotted a possible improvement. Rather than introducing a so limited concept of territory, and then introducing “Captured stones” and “One-sided capture”, why not join the two concepts? Black’s territory is simply the empty hexes where white can’t play without losing the game. Of course it’s hard to determine and it changes over the course of the game, but of course it’s the relevant concept.  And it’s of course related to dead hexes and dead stones, as well as being related to virtual connections.

  • lazyplayer at 2019-01-31

    Territory as defined by me allows you to reason about inferiority/superiority of a stone vs another. If one stone gives you at least as much territory as the other, then it’s at least s good as the other. Of course territory can’t be computed precisely (we don’t know which stones are winning and which are losing) but at least one can get an idea (we know which stones are surely losing).



  • lazyplayer at 2019-01-31

    Basically you need to relocate chapter 6 into chapter 3 or even chapter 2. :)

  • lazyplayer at 2019-01-31

    It’s  hard to organize all the material because there is no unifying theory. It’s just a lot of special cases. I also have no unifying theory although I always try to come up with one. :)

  • HappyHippo at 2019-01-31

    Interesting idea. The issue is chapter 6 is rather technical/mathematical, which can be off-putting to newcomers, so I’d rather keep that material for later. 

    Glenn Rhodes introduced the concept of territory that I used. However there’s a lot of overlap with the term “influence,” which I introduced in chapter 2. I’ve considered abandoning “territory” altogether in favour of “influence,” which is more appropriately vague. The “definition” of territory conveys a precision that isn’t really there, at least not in the way I’m using it. Instead of speaking in terms of “intruding in order to gain territory” I could say instead “intruding to gain influence” and the like. “Useless stones” would have no influence at all. Thoughts on that?

  • lazyplayer at 2019-02-01

    HappyHippo, https://www.amazon.com/Hex-Ryan-B-Hayward/dp/0367144220/

    Buy this as soon as possible and use their terminology. Basically, the published names for the two key concepts are “virtual connections” and “inferior cells”.

    I don’t remember their name for what you’ve called “captured cells”. Maybe it’s indeed “captured cells”? Maybe they use it only to compute inferior cells?

  • HappyHippo at 2019-02-01

    Yeah, “dead” and “captured” is terminology I took from their paper

  • lazyplayer at 2019-02-01

    Happy, but you’ve changed definition? In the paper there, capture means what you’ve called one-sided capture? Don’t change terms!

  • lazyplayer at 2019-02-01

    Also formally, it’s all about inferior cells..

    > In Hex, another form of domination arises when a cell is on all induced winning paths of another cell [11, 13].  When we wish to distinguish be tween these two forms of domination, we call the former fillin domination and the latter induced path domination. In this paper we use only fillin domination.

    Both virtual connections and dead/capture cell analysis is about discovering provably inferior choices and pruning them. This should be clarified. They’re both forms of inferior cell analysis, aka comparing one choice with another without playing out all possible variations. Of course they’re massively useful.

    > Thus we can apply Theorem 3.5 as follows: given a Hex position in which we are trying to find a Left-winning move, we can identify dead cells, Left-dead-reversible cells, and an independent Left-captured-reversible set, and prune all these inferior cells from consideration with the caveat that we consider at least one legal move.

    And then you’ve to explain how to use dead cells and captured cells for inferior cell analysis... :)

  • HappyHippo at 2019-02-01

    "Happy, but you’ve changed definition? In the paper there, capture means what you’ve called one-sided capture? Don’t change terms!"

    I don’t believe so, compare figure 5 in the paper to Diagram 236. They call it left-captured, I just call it captured.

  • HappyHippo at 2019-02-01

    ???

  • HappyHippo at 2019-02-01

    Hmm I refreshed the page and that ??? message appeared?

  • lazyplayer at 2019-02-01

    Happy, the example is ok, but the text is not. You basically describe dead-reversible cells while explaining capture? Or maybe I’m wrong? I’m not entirely sure because I never looked into these details to be honest, although all my play is actually based on being very good at these local patterns :D

  • lazyplayer at 2019-02-01

    There are 4 concepts introduced in the paper, dead, dead-reversible, captured, captured-reversible. Then maybe there are more. It’s surely not an easy read.

  • lazyplayer at 2019-02-01

    For black territory, there are two definitions that make some sense to me:

    1) All cells that can’t be played by white without losing "obviously"

    2) All cells that should not be played by black because they’re “obviously” a waste of time

    Earlier I had argued for using (1), but now I think probably the correct definition is (2). It’s like captured and capture-reversible in the paper but with some added generality.

  • lazyplayer at 2019-02-01

    Hmm, but I see, (2) can’t be right, because white can create black “territory” by adding stones... so I guess the only passable definition is (1), black territory is simply where white can’t play.

  • lazyplayer at 2019-02-01

    Ehehe, but (1) does not have the property that black territory and white territory are disjoint. So, I submit another definition of black territory:

    It’s the empty cells that could be filled with black stones at any time without changing the result of the game.

  • lazyplayer at 2019-02-01

    Ah fuck, but this is again (2)... well, there is no territory in hex :D

  • lazyplayer at 2019-02-01

    Well, there is one way to make a definition that works, but it’s almost useless: empty cells surrounded by black stones and/or black edges.

  • lazyplayer at 2019-02-01

    Actually, empty or non-empty, as long as they’re surrounded, clearly they’re black territory.

  • HappyHippo at 2019-02-02

    "Happy, the example is ok, but the text is not. You basically describe dead-reversible cells while explaining capture? Or maybe I’m wrong? I’m not entirely sure because I never looked into these details to be honest, although all my play is actually based on being very good at these local patterns :D"

    I think I explained it correctly. Referencing the paper:

    "Consider any pattern in Figure 5. Left has a second-player strategy on the uncolored cell pair — if Right colors one, Left colors the other — that kills the cell just colored by Right. Thus the uncolored cell pair is Left-captured." (where “Left” and “Right” are game theory jargon for “black” and “white,” respectively)

    In the book I write:

    "Have a look at Diagram 236. Each pattern has two marked marked hexes. If White plays at one hex, Black responding at the other renders the initial hex dead ... We say the marked hexes are captured by Black"

  • lazyplayer at 2019-02-02

    Happy, right, I was confused on who is to play.

    Black-dead-reversible means if black plays there, white can play there and kill black stone.

    Black-captured means if white plays there, black can play there and kill white stone.

    Damn the paper is hard, I’ll have to take a few days to study it when I can.

  • mmKALLL at 2019-02-10

    Just checked this out in a bit more detail. Got immediately hooked and went through 5-6 chapters at once.

    Fantastic book, really amazing work of you to put this together! I feel like I got at least 150 points stronger just by checking this book out. :)

    Also thanks for the example games and template links, they really make this a special resource for studying Hex.

  • Giupiter at 2019-02-10

    I played a few rounds of Tanx Matthew and I enjoined it! I like the “scientific spirit” of the game, it seems to me like a tribute to Newton’s law of gravitation :) COOL!

  • Korrun at 2019-03-12

    This is awesome! Thanks.

Return to forum

Reply to this topic




Include game board: [game;id:123456] or [game;id:123456;move:20] or [game;id:123456;move:20;title:some text]