Files
basic-computer-games/40_Gomoko
Martin Thoma e64fb6795c MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00
..
2022-03-05 09:29:23 +01:00
2022-03-05 09:29:23 +01:00
2022-03-05 09:29:23 +01:00
2022-03-05 09:29:23 +01:00
2022-01-03 02:13:21 -05:00

Gomoko

GOMOKO or GOMOKU is a traditional game of the Orient. It is played by two people on a board of intersecting lines (19 left-to-right lines, 19 top-to-bottom lines, 361 intersections in all). Players take turns. During his turn, a player may cover one intersection with a marker; (one player uses white markers; the other player uses black markers). The object of the game is to get five adjacent markers in a row, horizontally, vertically or along either diagonal.

Unfortunately, this program does not make the computer a very good player. It does not know when you are about to win or even who has won. But some of its moves may surprise you.

The original author of this program is Peter Sessions of Peoples Computer Company.


As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html