Difference between revisions of "Small boards"

From HexWiki
Jump to: navigation, search
(Copied/adapted page from http://hexwiki.tk)
 
(Link to KataHex)
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Playing [[Hex]] on [[board]]s of size smaller than 10 × 10 is not very interesting, since many players will be able to play almost perfectly. However it may still be intersting for theoretical studies, and for making problems.
+
Playing [[Hex]] on [[board]]s of size smaller than 10 × 10 is not very interesting, since many players will be able to play almost perfectly. However it may still be interesting for theoretical studies, and for making [[Puzzles|problems]].
  
The boards of size up to five can be solved by hand. Hex on 6 × 6 has been solved by [[Queenbee]].
+
The boards of size up to five can be solved by hand. Hex on 6 × 6 has been solved by [[Queenbee]]. The board sizes 7 to 9 have been solved with computer programs, too.
  
Here are the winning first moves on the small boards. [[Red (player)|Red]] is vertical and plays first. The [[Hex (board element)|cells]] containing a red [[Piece|stone]] are winning moves for red, while those containing a blue stone are losing. For more details, visit Queenbee's own opening page at http://www.cs.ualberta.ca/~queenbee/openings.html
+
Here are the winning first moves on the small boards. [[Red (player)|Red]] is vertical and plays first. The [[Hex (board element)|cells]] shaded red are winning moves for red, while those shaded blue are losing.
  
''Update:'' The 7 × 7 board has been solved by [[R. Hayward]], et.al. For more details, visit http://www.cs.ualberta.ca/~hayward/hex7trees/
+
== Winner depending on the first move ==
 +
The following boards can help you decide where you should [[swap]] when playing on small boards, and it might give you ideas of patterns for bigger boards.
  
<hex>R2 C2 Vb1 Va2 Ha1 Hb2</hex>
+
<hexboard size="2x2"
 +
  coords="show"
 +
  contents="S red:all blue:(a1 b2)"
 +
  />
  
<hex>R3 C3 Va2 Va3 Hb1 Vb2 Hb3 Vc1 Vc2 Ha1 Hc3</hex>
+
<hexboard size="3x3"
 +
  coords="show"
 +
  contents="S red:all blue:(a1 b1 b3 c3)"
 +
  />
  
<hex>R4 C4 Va4 Vb3 Vc2 Vd1 Ha1 Ha2 Ha3 Hb1 Hb2 Hb4 Hc1 Hc3 Hc4 Hd2 Hd3 Hd4</hex>
+
<hexboard size="4x4"
 +
  coords="show"
 +
  contents="S blue:all red:(a4 b3 c2 d1)"
 +
  />
  
<hex>R5 C5 Ve1 Vb2 Vc2 Vd2 Ve2 Vb3 Vc3 Vd3 Va4 Vb4 Vc4 Vd4 Va5 Ha1 Ha2 Ha3 Hb1 Hc1 Hd1 Hb5 Hc5 Hd5 He5 He4 He3</hex>
+
<hexboard size="5x5"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--d1 a2 a3 b5--e5 e4 e3)"
 +
  />
  
<hex>R6 C6 Ve1 Vb2 Vc2 Vd2 Ve2 Vb3 Vc3 Vd3 Va4 Vb4 Vc4 Vd4 Va5 Ha1 Ha2 Va3 Hb1 Hc1 Hd1 He1 Vb5 Vc5 Vd5 Ve5 Ve4 Ve3 Vf1 Vf2 Vf3 Vf4 Hf5 Hf6 He6 Hd6 Hc6 Hb6 Va6</hex>
+
<hexboard size="6x6"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--e1 a2 b6--f6 f5)"
 +
  />
  
<hex>R7 C7 Q1 Ha1 Hb1 Hc1 Hd1 He1 Hf1 Vg1 Ha2 Hb2 Vc2 Hd2 Ve2 Vf2 Vg2 Ha3 Vb3 Vc3 Vd3 Ve3 Vf3 Hg3 Va4 Vb4 Vc4 Vd4 Ve4 Vf4 Vg4 Ha5 Vb5 Vc5 Vd5 Ve5 Vf5 Hg5 Va6 Vb6 Vc6 Hd6 Ve6 Hf6 Hg6 Va7 Hb7 Hc7 Hd7 He7 Hf7 Hg7</hex>
+
=== Size 7 ===
 +
 
 +
Size 7 was first solved by [[Ryan Hayward]] using [[dominated cell|domination]]. The proof tree can be found at http://www.cs.ualberta.ca/~hayward/hex7trees/
 +
 
 +
<hexboard size="7x7"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--f1 a2 b2 a3 d2 a5 b7--g7 g6 f6 g5 d6 g3)"
 +
  />
 +
 
 +
=== Size 8 ===
 +
 
 +
The outcomes for size 8 were computer generated by [[Javerberg]]. The solution was independently computer generated by Hayward et al. and appeared in [[INJCAI|IJCAI09]].
 +
 
 +
<hexboard size="8x8"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--g1 a2--f2 a3 a4 a6 b8--h8 c7--h7 h6 h5 h3)"
 +
  />
 +
 
 +
=== Size 9 ===
 +
 
 +
The outcomes for size 9 by Jakub Pawlewicz and Ryan Hayward.
 +
 
 +
<hexboard size="9x9"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--h1 d2--g2 a3 a7 b9--i9 c8--f8 i7 i3)"
 +
  />
 +
 
 +
=== Size 10 ===
 +
 
 +
The 10 &times; 10 board has not been solved, though one can make educated guesses from the swap maps of strong bots. In particular, according to the [https://pic1.zhimg.com/v2-43e07696b00949bb8ae177d3ddfd61c8_r.jpg swap map] of [[KataHex]], the outcomes for size 10 are as follows:
 +
 
 +
<hexboard size="10x10"
 +
  coords="show"
 +
  contents="S red:all blue:(a1--i1 a2--h2 a3 a8 b10--j10 c9--j9 j8 j3)
 +
            E *:(a1 b1 b9 f5 e6 i2 i10 j10)"
 +
  />
 +
 
 +
Only the cells marked "*" have been proven (by humans) to be winning or losing; the other cells are not completely certain. [[KataHex]] assigns a winning probability of at least 94.4% (in self-play) for every cell it believes is winning, and at most 2.6% for every cell it believes is losing. Note this does '''not''' mean that the bot is at least 94.4% sure of each cell's outcome, only that it thinks it has a 94.4% win rate with the winning side in self-play. However, the probabilities being so close to 0 and 1 suggest the bot is quite confident in its assessment.
 +
 
 +
== Reference ==
 +
* This [http://www.ru.is/faculty/yngvi/pdf/HaywardBJKPR05.pdf article] by Ryan Hayward ''et al.'' is a reference for 7x7.
 +
* This [[Little Golem]]'s forum [http://www.littlegolem.net/jsp/forum/topic2.jsp?forum=50&topic=338 thread] is a reference for size 8x8.
 +
* This [https://webdocs.cs.ualberta.ca/~hayward/papers/pawlhayw.pdf article] by Jakub Pawlewicz and Ryan Hayward is a reference for size 9x9.
 +
 
 +
== See also ==
 +
 
 +
* [[Board size]]
 +
* Yang, Liao, and Pawlak designed a [https://webdocs.cs.ualberta.ca/~hayward/papers/yang7.pdf decomposition method] to find a winning strategy for Hex on small boards.
 +
* For corresponding information on the game of Y, please visit [[Where to swap (y)]].
 +
 
 +
[[Category: Theory]]

Latest revision as of 14:54, 18 November 2023

Playing Hex on boards of size smaller than 10 × 10 is not very interesting, since many players will be able to play almost perfectly. However it may still be interesting for theoretical studies, and for making problems.

The boards of size up to five can be solved by hand. Hex on 6 × 6 has been solved by Queenbee. The board sizes 7 to 9 have been solved with computer programs, too.

Here are the winning first moves on the small boards. Red is vertical and plays first. The cells shaded red are winning moves for red, while those shaded blue are losing.

Winner depending on the first move

The following boards can help you decide where you should swap when playing on small boards, and it might give you ideas of patterns for bigger boards.

ab12
abc123
abcd1234
abcde12345
abcdef123456

Size 7

Size 7 was first solved by Ryan Hayward using domination. The proof tree can be found at http://www.cs.ualberta.ca/~hayward/hex7trees/

abcdefg1234567

Size 8

The outcomes for size 8 were computer generated by Javerberg. The solution was independently computer generated by Hayward et al. and appeared in IJCAI09.

abcdefgh12345678

Size 9

The outcomes for size 9 by Jakub Pawlewicz and Ryan Hayward.

abcdefghi123456789

Size 10

The 10 × 10 board has not been solved, though one can make educated guesses from the swap maps of strong bots. In particular, according to the swap map of KataHex, the outcomes for size 10 are as follows:

abcdefghij12345678910

Only the cells marked "*" have been proven (by humans) to be winning or losing; the other cells are not completely certain. KataHex assigns a winning probability of at least 94.4% (in self-play) for every cell it believes is winning, and at most 2.6% for every cell it believes is losing. Note this does not mean that the bot is at least 94.4% sure of each cell's outcome, only that it thinks it has a 94.4% win rate with the winning side in self-play. However, the probabilities being so close to 0 and 1 suggest the bot is quite confident in its assessment.

Reference

  • This article by Ryan Hayward et al. is a reference for 7x7.
  • This Little Golem's forum thread is a reference for size 8x8.
  • This article by Jakub Pawlewicz and Ryan Hayward is a reference for size 9x9.

See also