basic rule set
- make five / capture to win
- block five
- make an open four (black capture to win)
- block open three
- make open three
- set up capture (or)
work on a preset pattern (or)
build two
- place random piece
first couple of moves
to set difficulty rating
computer player is @ ; human player is *
- if 8 captures, look for capture @**-
else @@@@- or @@@-@ or @@-@@
- ****- or ***-* or **-**
- if opponend has 8 captures black *@@-
else @@@- or @@-@
- ***- or **-*
- @@- or @-@ or maybe @-@-
- a) -**
- b) use pattern library to find closest
match and place pieces
within it
- c) @-
- random placement
- *@@@-
8 directional searching
pattern searching: 1-8
@**- case 1 left to right
-**@ case 2 right to left
@ case 3 top to bottom
*
*
-
- case 4 bottom to top
*
*
@
@ case 5 left to right
* top to bottom
*
-
- case 6 left to right
* bottom to top
*
@
@ case 7 right to left
* top to bottom
*
-
- case 8 right to left
* bottom to top
*
@
legend
black => *
red => @
space => -
pattern strings
**
@**-
@***-
@***-*
rules
first assign a 1 to every unoccupied space then search for ****@ or ***-*
set highest priority to block unless you have 8 captures and a capture is available or you can make 5 in a row.
basic patterns to search for:
o
x o
o o
o o o
o o o o
o o o o o
x o o
x o o o
x o o o o
o o o
x o o o
o o o x
parser that takes strings such as
xxx 1xxx1
so that the priority of an intersection
is increased
1
x
x
x
2 x x x 1