SE701:Gomoku
Description
Gomoku, also known as Connect5, is an abstract strategy board game which is usually played on a go board (19x19) but often the boundary is ignored when it is played on a paper.
This game is for two players; one player plays with black stones and another player plays with white stones.
The winner is the first player to get an unbroken row of five stones horizontally, vertically, or diagonally.
Conventionally, Black plays first and players alternate in placing stones of their colour on an empty intersection. I am thinking of representing the board as list of dots and the stones as o and x as below and let the users to enter co-ordinate as (x-index, y-index).
a b c d e f g h i j k l m n o p q r s a . . . . . . . . . . . . . . . . . . . b . . . . . . . . . . . . . . . . . . . c . . . . . . . . . . . . . . . . . . . d . . . . . . . . . . . . . . . . . . . e . . . . . . . . . . . . . . . . . . . f . . . . . . . . . . . . . . . . . . . g . . . . . . . . . . . . . . . . . . . h . . . . . . . . . . . . . . . . . . . i . . . . . . . . o . . . . . . . . . . j . . . . . . . . . x . . . . . . . . . k . . . . . . . . . . . . . . . . . . . l . . . . . . . . . . . . . . . . . . . m . . . . . . . . . . . . . . . . . . . n . . . . . . . . . . . . . . . . . . . o . . . . . . . . . . . . . . . . . . . p . . . . . . . . . . . . . . . . . . . q . . . . . . . . . . . . . . . . . . . r . . . . . . . . . . . . . . . . . . . s . . . . . . . . . . . . . . . . . . . --Gomoku Board--
The game will be available in both
- Player1 vs Computer mode
- Player1 vs Player2 mode