| FS 05 /HOW MAKE IT: very shortly PICTORIAL GUIDE after GOMOKU ENGINE code | |||||
| go on: | < previous page
|
next page > | |||
![]() game board summary flagx add ten flagx values M+ in line /001 M+ in line /002 M+ in line /003 M+ in line /004 LastMove /001 LastMove /002 predict low now predict high now 2d delay, dilay more delay now dilay +, delay + three: better end strategy FS05 summary |
Basic rules: Samples with "flagx" values in more basic situations. Here is now change in value 2000. In previously engines on the same situations is 5000 ("three"). More about "flagx" and "lagx" arrays: see pages FS03 (13)
|
||||
|
examples in C++
Setup values in arrays and variables: //...
int xoflag[4] = {0, 100, 1000, 2000}; //lagx (lago) values
//...
int placx[6] = {1, 1, 0, 0, 0, 0};
int placo[6] = {1, 1, 1, 0, 0, 0};
if(who == 1) { //engine is X (first player)
placx[2] = 0, placo[2] = 0;
bacx = 0, baco = 0, tiffx = 0, tiffo = 0, keepx = 0, keepo = 0;
}
//placx[0]: --x.--
//placx[1]: -x-.--
//placx[2]: -x--.-
|
|||||
| go on: | < previous page | next page > | |||
| FS03: alike theme | FREE SECTOR, 2016 (free alliance of developers Pixoria gomoku plug-in engines) | page 2/16 | |||