User:ArekKulczycki

From HexWiki
Revision as of 10:29, 30 September 2024 by ArekKulczycki (Talk | contribs)

Jump to: navigation, search

Corner-Relative Coordinate System

TL/DR

To see my reasons read the article. In a nutshell:

1) We should talk about the board in reference to the corners, not the edges, for more intuitive navigation.

2) Coordinates are easier handled as relative, i.e. subjective to the player, the same board cell in traditional coordinates is expressed by different relative coordinates for each of the 2 players.

3) Coordinate notation should be intuitive, clear, memorable and transferable to another system.

Now Go to the Proposition paragraph directly.

Intro

Hex requires a coordinates system which makes it easy to talk about moves and positions.

There have been attempts to create coordinate systems which are based on position of the stone in relation to both edges, which is logical and perfectly understandable approach. Obviously this is the way used in other board games and ourselves we annotate the boards this way, using letters for X coordinate and numbers for Y coordinate. This raises a question however... If we already have this notation, why do we still create new coordinate systems? Well, for a couple of reasons:

1) We play on multiple board sizes, so a coordinate means a different thing on one or another board. 2) The alphabet is confusing, as we don't know which in sequence is a letter, say, "k". However, having a pair of two numbers is confusing too, because if the coordinates are symmetrical then it's easy to confuse the order. 3) The boards are really big... on a popular 19x19 board, it's hard to have even a slightest intuition what move we're describing when using YX coordinates. 3') On top of the objective intuition, it would be useful having 2 moves annotated, to easily see if they are adjacent or in a bridge relation.

So, back to my point, there have been attempts and they are still based on distances from edges. The values they introduce are the following: a) replacing alphabet with numbers b) making measurements from the closest edges, instead of the further ones (with a caveat that it requires an additional flag to understand if it's a stone or it's mirror)

Challenge

The values mentioned above are improvement over calling moves directly "o7" etc. But do they really make it *easy* to talk? Do they solve the issues 1-3?

The general public got convinced by describing several commonly used moves with distances like 11 is meant to be the first cell from the obtuse corner of the board, 22 is the second, 33 third etc. I don't blame nobody, we didn't have anything else. But how many people use assymetrical coordinates like even 54, 45, let alone 37 or 96? The reason we don't do it is not that we forget which side to count from. The real reason is that the distance from edges in itself is not so meaningful in Hex after all!

How about a test? Let's mark a move with a lone digit when counting from bottom/left and use Prime notation if counting from top/right, similar to Mason Coordinates - the best system to my knowledge. We use YX, that is, the column comes first and then the row. You're following so far?

Let's talk about a game played on 13x13 board, so 11 is a bottom-left corner, 1'1' is the top-right corner, got it? 1'1 is the top-left and 11' is the bottom-right. Still with me?

"Draw the damn diagram already!" - that's what you're thinking right? But this is precisely what the coordinates are for - we want to be able to talk about moves without seeing the board in front of us. So bear with me for a little longer and resist the urge of seeing pictures.

Exercise

Alright, get ready, so black opens with 2'3, white responds 45' and they follow with 43', 33', 34', 53'. You recognize it, right? No? Howcome, this is the most famous joseki! :)

Sorry, that was unfair, we are not trained at this as Hex players. The realistic exercise is to just imagine a single move at a time, one by one:

  • 6'3
  • 75'
  • 7'5

How long does it take you to figure out what move this is?

Reasoning

When I play a game of Hex, I don't care about the exact distances from edges. What I do care about (and you should too) is mostly 3 things: corners, ladders and bridges.

When I make a move on an empty board, my reference points are corners. If I target the obtuse corner, my eyes will run a ladder along the short diagonal to find a move at a desired distance from this corner. Conversely, if I target the acute corner, my eyes will find the bridge connection to my side in that corner and follow bridge-by-bridge to a desired distance. (This last point comes with a caveat, the acute corner is not aimed at equivalently by black and white players because of how the bridge connection works. I will tackle this problem later.)

If this is how I find my moves, why not base the coordinates off the same idea? That seems sensible, when I hear a coordinate I will just do what I always do, but will count steps and stop at the given distance. We're on to something, no? Let's also solve the problems listed in an earlier paragraph!

1) Independence on the board size.

We're focused solely on corners/diagonals, so we're good to go, every board has the same 4 corners.

2) The alphabet or a pair of numbers confusion.

Let's use numbers only and forget about symmetry. We want to primarily reflect the distance from the corner. We can use a secondary number to distinguish between all the moves within the same distance from the corner.

3) Practical intuition on where the move is located.

As stated before, our reference points to understand the moves are corners. Specifically, we're interested if a move fits into the obtuse corner by a ladder and if it fits to the acute corner by a bridge. If it isn't a perfect fit, then we would be interested "how far off" it is. The moves can be "off" in two directions, may miss the target (our edge) or may fall into the edge too centrish. I will elaborate on this in an Offset paragraph.

3') Relation between 2 moves. This might be the weakness of the corner-related approach, although with a smart interpretation (which I will do my best to provide) it's possible to also get a correct intuition.

Proposition

Disclaimer: A move annotated with Corner-Relative Coordinates, if stone color is skipped, can occur twice in a game, because it means something else for each of the players. Inclusion of stone color is optional, but makes the notation objective.

Based on what was said, we need to pack several values into each coordinate:

  • [Optionally] Color of the stone. It is optional, because usually we know what color the next move is.
  • Distance from the corner. For simplification, let's count distance in just 1 dimension, such that we define the distance from the corner as the distance from our own edge. Note that in the context of the long diagonal the distance can equivalently be counted with bridges from the corner cell.
  • The corner. We have 2 acute and 2 obtuse corners. I'm tempted to use lower- and uppercase letters but that might be confused with the original column coordinate. We need 2 pairs of symbols then. It can make intuitive sense to use angle brackets for left < and right > acute corners, and parentheses for left ( and right ) obtuse corner.
  • Offset. We need a number that will describe the offset of the move from one positioned perfectly on the diagonal. I'll define it such that it is strategically meaningful. The offset is positive if it is towards the closest opponent edge (a "blocking" move) and negative if is towards the middle of own edge. The offset is parallel to own edge and its value is naturally the distance in that dimension.

That's it! We're covered! The format is $d+o, where $ is a corner symbol, d is distance from the corner, o is the offset (positive or negative).

Looking at a 11x11 board, the corners: a1 is <1, a11 is (1, k1 is )1, k11 is >1.

ACBD
  • A:= <4+1
  • B:= (4
  • C:= )5
  • D:= >5+1

Exercise again

I challenge you to imagine the stones based on the notation yet again, same as we did above for another system.

Black opens with <2-1, white responds >5+1 and they follow with >4+1, >3, >3-1, >3-3. This time I had easier time writing it down. How readable was it for you? Let's try some single stones now:

  • )6+3
  • (7-2
  • )7-2

Translations

It is ofcourse possible to translate from Mason Coordinates to mine. The way to do it is to first identify the corner, there are 4 cases: 1) No prime notation, it's ( 2) Both coordinates are prime, it's ) 3) First is prime, it's < 4) Second is prime, it's >

Once we got the corner, we again have 2 cases: 1) for white player we take the value of the second coordinate (column) 2) for black player we take the value of the first coordinate (row)

And finally we calculate the offset, player-based: 0) take absolute coordinates, that is, absolute value := board size - prime value 1) for white player, from second coordinate subtract the first (in absolutes) 2) for black player, from first coordinate subtract the second (in absolutes)

Offset

The move offset has a practical strategical meaning for the game. A positive offset means the move is a "blocking" or "defensive" move next to the opponent side. A negative offset means the move is located around the middle of own edge, usually considered suboptimal, but strongly connected.

211
WARNING: Illegal character: '2'

Playing moves with an offset will determine the "shape" of your connection attempt. The shape that goes "around" the board I would call *convex*, maybe popularly known as *indirect*. Instead a more *direct* shape that pushes through the middle I would call *concave*. Therefore convex moves (with positive offset) indicate an indirect strategy, while concave moves (negative offset) are an indicator of direct strategy. It sounds reasonable to propose these new terms when referring to the offset, the *convex/concave* moves for short.