Jump to content

Gomoku

From Wikipedia, the free encyclopedia

Gomoku
GenresBoard game
Abstract strategy game
Players2
Setup timeMinimal
ChanceNone
SkillsStrategy,tactics

Gomoku,also calledFive in a Row,is anabstract strategyboard game.It is traditionally played withGopieces (black and white stones) on a 15×15 Go board[1][2]while in the past a 19×19 board was standard.[3][4]Because pieces are typically not moved or removed from the board, gomoku may also be played as apaper-and-pencil game.The game is known in several countries under different names.

Rules

[edit]

Players alternate turns placing a stone of their color on an empty intersection. Black plays first. The winner is the first player to form an unbroken line of five stones of their color horizontally, vertically, or diagonally. In some rules, this line must be exactly five stones long; six or more stones in a row does not count as a win and is called an overline.[5][6]If the board is completely filled and no one has made a line of 5 stones, then the game ends in a draw.

Origin

[edit]

Historical records indicate that the origins of gomoku can be traced back to the mid-1700s during the Edo period. It is said that the 10th generation of Kuwanaya Buemon, a merchant who frequented the Nijō family, was highly skilled in this game, which subsequently spread among the people. By the late Edo period, around 1850, books had been published on gomoku.[7]The earliest published book on gomoku that can be verified is theGomoku Jōseki Collection(Ngũ thạch định thích tập)in 1856.[8]

The name "gomoku" is from theJapanese language,in which it is referred to asgomokunarabe(Ngũ mục tịnh べ).Gomeansfive,mokuis acounter wordforpiecesandnarabemeansline-up.The game is popular inChina,where it is calledWuziqi( ngũ tử kỳ ).[9]Wu( ngũ wǔ) meansfive,zi( tử zǐ) meanspiece,andqi(Kỳqí) refers to a board game category in Chinese. The game is also popular inKorea,where it is calledomok(오목 [ ngũ mục ]) which has the same structure and origin as the Japanese name.

In the nineteenth century, the game was introduced to Britain where it was known asGo Bang,said to be a corruption of the Japanese wordgoban,which was itself adapted from the Chinesek'i pan (qí pán)"go-board."[10]

First-player advantage

[edit]

Gomoku has a strong advantage for the first player when unrestricted.[11][12]

Championships in gomoku previously used the "Pro"opening rule, which mandated that the first player place the first stone in the center of the board. The second player's stone placement was unrestricted. The first player's second stone had to be placed at least three intersections away from the first player's first stone. This rule was used in the 1989 and 1991 world championships.[13]When the win–loss ratio of these two championships was calculated, the first player (black) won 67 percent of games.

This was deemed too unbalanced for tournament play, so tournament gomoku adopted theSwap2opening protocol in 2009. In Swap2, the first player places three stones, two black and one white, on the board. The second player then selects one of three options: play as black, play as white and place another white stone, or place two more stones, one white and one black, and let the first player choose the color.[14][15]

The win ratio of the first player has been calculated to be around 52 percent using the Swap2 opening protocol, greatly balancing the game and largely solving the first-player advantage.[11][12][16]

Variants

[edit]

Freestyle gomoku

[edit]

Freestyle gomoku has no restrictions on either player and allows a player to win by creating a line of five or more stones, with each player alternating turns placing one stone at a time.

Swap after 1st move

[edit]

The rule of "swap after 1st move" is a variant of the freestyle gomoku rule, and is mostly played in China. The game can be played on a 19×19 or 15×15 board. As per the rule, once the first player places a black stone on the board, the second player has the right to swap colors. The rest of the game proceeds as freestyle gomoku. This rule is set to balance the advantage of black in a simple way.[17]

Black (the player who makes the first move) has long been known to have an advantage, even beforeL. Victor Allisproved that black can force a win (see below). Renju attempts to mitigate this imbalance with extra rules that aim to reduce black's first player advantage.

It is played on a 15×15 board, with the rules of three and three, four and four, and overlines applied to Black only.[6]

  • The rule of three and three bans a move that simultaneously forms two open rows of three stones (rows not blocked by an opponent's stone at either end).
  • The rule of four and four bans a move that simultaneously forms two rows of four stones (open or not).
  • Overlines prevent a player from winning if they form a line of 6 or more stones.[6][18]

Renju also makes use of various tournament opening rules, such asSoosõrv-8,the current international standard.[19]

Caro

[edit]

In Caro, (also called gomoku+, popular among Vietnamese), the winner must have an overline or an unbroken row of five stones that is not blocked at either end (overlines are immune to this rule). This makes the game more balanced and provides more power for White to defend.[20]

Omok

[edit]

Omok is similar to Freestyle gomoku; however, it is played on a 19×19 board and includes the rule ofthree and three.[21][22]

Ninuki-renju

[edit]

Also called Wu, Ninuki Renju is a variant which adds capturing to the game; A pair of stones of the same color may be captured by the opponent by means of custodial capture (sandwiching a line of two stones lengthwise). The winner is the player either to make a perfect five in a row, or to capture five pairs of the opponent's stones. It uses a 15x15 board and the rules of three and three and overlines. It also allows the game to continue after a player has formed a row of five stones if their opponent can capture a pair across the line.[23]

Pente is related to Ninuki-Renju, and has the same custodial capture method, but is most often played on a 19x19 board and does not use the rules of three and three, four and four, or overlines.[24]

ProOpening Rule: Black places first stone in the center of board. White can place anywhere, but places to the South-East. Black places their second stone three spaces away.

Tournament Opening Rules

[edit]

Tournament rules are used in professional play to balance the game and mitigate the first player advantage. The tournament rule used for the gomoku world championships since 2009 is the Swap2 opening rule. For all of the following professional rules, an overline (six or more stones in a row) does not count as a win.[16]

SwapOpening Rule: Tentative Black places two black stones and one white stone anywhere on the board. Tentative white chooses which color to play as.

Pro

[edit]

The first player's first stone must be placed in the center of the board. The second player's first stone may be placed anywhere on the board. The first player's second stone must be placed at least three intersections away from the first stone (two empty intersections in between the two stones).[15]

Long Pro

[edit]

The first player's first stone must be placed in the center of the board. The second player's first stone may be placed anywhere on the board. The first player's second stone must be placed at least four intersections away from the first stone (three empty intersections in between the two stones).[15][25]

Swap2Opening Rule: Tentative Black places two black stones and one white stone anywhere on the board. Tentative White responds by picking option number three and placing two more stones, one of each color, on the board and passes the choice of which color to play as to tentative Black.

Swap

[edit]

The tentative first player places three stones (two black, and one white) anywhere on the board. The tentative second player then chooses which color to play as. Play proceeds from there as normal with white playing their second stone.[15]

Swap2

[edit]

The tentative first player places three stones on the board, two black and one white. The tentative second player then has three options:

  1. They can choose to play as white and place a second white stone
  2. They can swap their color and choose to play as black
  3. Or they can place two more stones, one black and one white, and pass the choice of which color to play back to the tentative first player.

Because the tentative first player doesn't know where the tentative second player will place the additional stones if they take option 3, the swap2 opening protocol limits excessive studying of a line by only one of the players.[14][15]

Theoretical generalizations

[edit]

m,n,k-gamesare ageneralizationof gomoku to a board withm×nintersections, andkin a row needed to win.Connect Fouris (7,6,4) with piece placement restricted to the lowest unoccupied place in a column.

Connect(m,n,k,p,q) games are anothergeneralizationof gomoku to a board withm×nintersections,kin a row needed to win,pstones for each player to place, andqstones for the first player to place for the first move only. In particular, Connect(m,n,6,2,1) is calledConnect6.

Example game

[edit]
First game

This game on the 15×15 board is adapted from the paper "Go-Moku and Threat-Space Search".[26]

The opening moves show clearly black's advantage. An open row of three (one that is not blocked by an opponent's stone at either end) has to be blocked immediately, or countered with a threat elsewhere on the board. If not blocked or countered, the open row of three will be extended to an open row of four, which threatens to win in two ways.

White has to block open rows of three at moves 10, 14, 16 and 20, but black only has to do so at move 9. Move 20 is a blunder for white (it should have been played next to black 19). Black can now force a win against any defense by white, starting with move 21.

Second game (continuation from first game)

There are two forcing sequences for black, depending on whether white 22 is played next to black 15 or black 21. The diagram on the right shows the first sequence. All the moves for white are forced. Such long forcing sequences are typical in gomoku, and expert players can read out forcing sequences of 20 to 40 moves rapidly and accurately.

Other second game

The diagram on the right shows the second forcing sequence. This diagram shows why white 20 was a blunder; if it had been next to black 19 (at the position of move 32 in this diagram) then black 31 would not be a threat and so the forcing sequence would fail.

World championships

[edit]

World Gomoku Championshipshave occurred 2 times in 1989, 1991.[13] Since 2009 tournament play has resumed, with the opening rule changed to swap2.[16]

List of the tournaments occurred and title holders follows.

World Championship
Title year Hosting city, country Gold Silver Bronze Opening rule
1989 Kyoto,Japan Soviet UnionSergey Chernov Soviet UnionYuriy Tarannikov JapanHirouji Sakamoto Pro
1991 Moscow,Soviet Union Soviet UnionYuriy Tarannikov Soviet UnionAndo Meritee Soviet UnionSergey Chernov Pro
2009 Pardubice,Czech Republic PolandArtur Tamioła HungaryAttila Demján Czech RepublicPavel Laube Swap2
2011 Huskvarna,Sweden HungaryAttila Demján PolandArtur Tamioła PolandMichał Żukowski Swap2
2013 Tallinn,Estonia HungaryAttila Demján Czech RepublicPavel Laube RussiaMikhail Kozhin Swap2
2015 Suzdal,Russia HungaryRudolf Dupszki HungaryGergő Tóth RussiaMikhail Kozhin Swap2
2017 Prague,Czech Republic HungaryZoltán László HungaryRudolf Dupszki RussiaDenis Osipov Swap2
2019 Tallinn,Estonia Czech RepublicMartin Muzika UkraineOleg Bulatowsky PolandMichał Żukowski Swap2
2023 Budapest,Hungary Czech RepublicPavel Laube PolandAdrian Fitzermann Czech RepublicMartin Muzika Swap2
Team World Championship
Title year Hosting city, country Gold Silver Bronze Opening rule
2016 Tallinn,Estonia Poland
Michał Żukowski
Michał Zajk
Łukasz Majksner
Piotr Małowiejski
Czech Republic
Pavel Laube
Igor Eged
Štěpán Tesařík
Marek Hanzl
Chinese Taipei
Lu Wei-Yuan
Chen Ko-Han
Chang Yi-Feng
Sung Pei-Jung
Swap2
2018 Płock,Poland Russia-1
Edvard Rizvanov
Denis Osipov
Ilya Muratov
Maksim Karasev
Mikhail Kozhin
Hungary
Zoltán László
Gergő Tóth
Márk Horváth
Gábor Gyenes
Attila Hegedűs
Poland
Łukasz Majksner
Michał Żukowski
Michał Zajk
Marek Gorzecki
Paweł Tarasiński
Swap2
2020
Cancelled due to theCOVID-19 pandemic

Computers and gomoku

[edit]

Researchers have been applyingartificial intelligencetechniques on playing gomoku for several decades.Joseph Weizenbaumpublished a short paper inDatamationin 1962 entitled "How to Make a Computer Appear Intelligent"[27]that described the strategy used in a gomoku program that could beat novice players. In 1994,L. Victor Allisraised the algorithm of proof-number search (pn-search) and dependency-based search (db-search), and proved that when starting from an empty 15×15 board, the first player has a winning strategy using these searching algorithms.[28]This applies to both free-style gomoku and standard gomoku without any opening rules. It seems very likely that black wins on larger boards too. In any size of a board, freestyle gomoku is anm,n,k-game,hence it is known that the first player can force a win or a draw. In 2001, Allis's winning strategy was also approved for renju, a variation of gomoku, when there was no limitation on the opening stage.[29]

However, neither the theoretical values of all legal positions, nor the opening rules such as Swap2 used by the professional gomoku players have been solved yet, so the topic of gomoku artificial intelligence is still a challenge for computer scientists, such as the problem on how to improve the gomoku algorithms to make them more strategic and competitive. Nowadays[when?],most of the state-of-the-art gomoku algorithms are based on thealpha-beta pruningframework.[citation needed]

Reisch proved thatGeneralizedgomoku isPSPACE-complete.[30]He also observed that the reduction can be adapted to the rules of k-in-a-Row for fixed k. Although he did not specify exactly which values of k are allowed, the reduction would appear to generalize to any k ≥ 5.[31]

There exist several well-known tournaments for gomoku programs since 1989. TheComputer Olympiadstarted with the gomoku game in 1989, but gomoku has not been in the list since 1993.[32]The Renju World Computer Championship was started in 1991, and held for 4 times until 2004.[33][34]TheGomocuptournament is played since 2000 and taking place every year, still active now[when?],with more than 30 participants from about 10 countries.[35]The Hungarian Computer Go-Moku Tournament was also played twice in 2005.[36][37]There were also two Computer vs. Human tournaments played in the Czech Republic, in 2006 and 2011.[38][39]Not until 2017 were the computer programs proved to be able to outperform the world human champion in public competitions. In the Gomoku World Championship 2017, there was a match between the world champion programYixinand the world champion human player Rudolf Dupszki. Yixin won the match with a score of 2–0.[40][41]

[edit]

Gomoku was featured in a 2018 Korean drama by Baek Seung-Hwa starring Park Se-wan. The film follows Baduk Lee (Park Se-wan), a former go prodigy who retired after a humiliating loss on time. Years later, Baduk Lee works part time at a go club, where she meets Ahn Kyung Kim, who introduces her to an Omok (Korean gomoku) tournament. Lee is initially uninterested and considers Omok a children's game, but after her roommate loses money on an impulse purchase, she enters the tournament for the prize money and loses badly, being humiliated once again. Afterwards, she begins training to redeem herself and becomes a serious omok player.[42]

In the video gameVintage Storyomok boards and pieces (made of gold and lead) can occasionally be found in ruins or as part of luxury traders' inventory. The board and pieces are functional, allowing players to have actual omok matches. In-universe, omok is so far the only game surviving from the times before the Rot.

See also

[edit]

References

[edit]
  1. ^"Gomoku - Japanese Board Game".Japan 101. Archived fromthe originalon 2014-03-26.Retrieved2013-06-25.
  2. ^"Game Theory | GomokuWorld.com".gomokuworld.com.Archived fromthe originalon 2021-07-22.Retrieved2021-07-28.
  3. ^Lasker, Edward (1960).Go and go-moku: the oriental board games(2nd rev. ed.). New York: Dover.ISBN9780486206134.
  4. ^"The rules and the history of Renju and other five-in-a-row games."Luffarschack,renju.se/rif/r1rulhis.htm.Accessed 28 July 2021.
  5. ^"Game Theory | GomokuWorld.com".gomokuworld.com.Archivedfrom the original on 2021-07-22.Retrieved2021-07-22.
  6. ^abc"The Renju International Federation portal - RenjuNet".www.renju.net.Archivedfrom the original on 2023-02-10.Retrieved2023-02-10.
  7. ^"About the origin and rules of renju".Nihon Renju-sha(in Japanese). 2022-09-19. Archived fromthe originalon 2023-04-03.Retrieved2023-04-26.
  8. ^"Origins of renju".www.success-simulation.com.1999-10-01. Archived fromthe originalon 2022-03-31.Retrieved2023-04-26.
  9. ^"The Renju International Federation portal - RenjuNet".www.renju.net.Retrieved2023-04-30.
  10. '^OED citations:1886GUILLEMARDCruise 'MarchesaI. 267 Some of the games are purely Japanese..asgo-ban.Note,This game is the one lately introduced into England under the misspelt name of Go Bang.1888Pall Mall Gazette1. Nov. 3/1 These young persons...played go-bang and cat's cradle. The board below shows the three types of winning arrangements as they might appear on an 8x8 Petteia board. Obviously the cramped conditions would result in a draw most of the time, depending on the rules. Play would be easier on a larger Latrunculi board of 12x8 or even 10x11. .
  11. ^ab"BoardGameGeek".boardgamegeek.com.Archivedfrom the original on 2021-07-22.Retrieved2021-01-26.
  12. ^ab"Game database | GomokuWorld.com".gomokuworld.com.Retrieved2021-01-26.
  13. ^ab"The Renju International Federation portal - RenjuNet".Renju.net.Archivedfrom the original on 2021-07-22.Retrieved2012-10-03.
  14. ^ab"Gomoku - swap2 rule".renju.net.Retrieved2016-11-09.
  15. ^abcde"Opening rules | GomokuWorld.com".gomokuworld.com.Archivedfrom the original on 2021-07-22.Retrieved2021-07-07.
  16. ^abc"History | GomokuWorld.com".gomokuworld.com.Archivedfrom the original on 2021-07-07.Retrieved2021-01-26.
  17. ^"Swap after 1st move rule".www.wuzi8.com(in Chinese). Archived fromthe originalon 2021-12-08.Retrieved2023-04-28.
  18. ^"The Renju International Federation portal - RenjuNet".Archived fromthe originalon 11 July 2021.Retrieved2021-07-22.
  19. ^"The Renju International Federation portal - RenjuNet".renju.net.Archivedfrom the original on 2021-07-22.Retrieved2021-07-22.
  20. ^"Caro (aka Gomoku)".LearnPlayWin.Archivedfrom the original on 2021-07-22.Retrieved2021-07-22.
  21. ^"Omok: A Korean Game of Five Stones".KPOP Jacket Lady.2016-10-06.Archivedfrom the original on 2021-07-22.Retrieved2021-07-22.
  22. ^Sungjin, Nam. "Omok."Encyclopedia of Korean Folk Culture,National Folk Museum of Korea,https://web.archive.org/web/20210722180119/https://folkency.nfm.go.kr/en/topic/detail/1587.Accessed 22 July 2021.
  23. ^"Rules of Pente, Keryo-Pente and Ninuki".Renju.Archivedfrom the original on 2021-07-22.Retrieved2021-07-22.
  24. ^"Pente".www.mindsports.nl.Archivedfrom the original on 2021-07-01.Retrieved2021-07-22.
  25. ^"Gomoku - pro rule".www.renju.net.Retrieved2021-07-28.
  26. ^Allis, L. V., Herik, H. J., & Huntjens, M. P. H. (1993).Go-moku and threat-space search.University of Limburg, Department of Computer Science.
  27. ^How to Make a Computer Appear Intelligent,Datamation, February, 1962
  28. ^L. Victor Allis(1994).Searching for Solutions in Games and Artificial Intelligence.Ph.D. thesis, University of Limburg, The Netherlands. pp. 121–154.CiteSeerX10.1.1.99.5364.ISBN90-900748-8-0.
  29. ^J. Wágner and I. Virág (Mar 2001). "Solving Renju".ICGA Journal.24(1): 30–35.doi:10.3233/ICG-2001-24104.S2CID207577292.
  30. ^Stefan Reisch (1980). "Gobang ist PSPACE-vollständig (Gomoku is PSPACE-complete)".Acta Informatica.13:59–66.doi:10.1007/bf00288536.S2CID21455572.
  31. ^Demaine, Erik;Hearn, Robert(2001). "Playing Games with Algorithms: Algorithmic Combinatorial Game Theory".arXiv:cs/0106019v2.
  32. ^"Go-Moku (ICGA Tournaments)".game-ai-forum.org.Retrieved2016-06-02.
  33. ^"Renju Computer World Championship".5stone.net.Retrieved2016-06-02.
  34. ^"4-th World Championship among Computer programs".Nosovsky Japanese Games Home Page.Retrieved2016-06-03.
  35. ^"Gomocup - The Gomoku AI Tournament".Gomocup.Archived fromthe originalon 2016-06-04.Retrieved2016-06-02.
  36. ^"Hungarian Computer Gomoku Tournament 2005 | GomokuWorld.com".gomokuworld.com.Retrieved2016-06-02.
  37. ^"2nd Hungarian Computer Go-Moku Open Tournament".sze.hu.Retrieved2016-06-03.
  38. ^"The 1st tournament AI vs. Human (November the 11th, 2006) | Gomocup".gomocup.org.Retrieved2016-06-02.
  39. ^"AI vs. Člověk 2011 | Česká federace piškvorek a renju".piskvorky.cz.Retrieved2016-06-02.
  40. ^"Rudolf Dupszki versus Yixin".AIEXP.
  41. ^"Rudolf Dupszki vs. Yixin 2017".Facebook.
  42. ^Seung-hwa, Baek, writer.Omok Girl.Performance by Park Se-wan, SK Telecom, 2018.

Further reading

[edit]
[edit]