FS 03 /HOW MAKE IT: very shortly PICTORIAL GUIDE after GOMOKU ENGINE code
go on: < previous page this page 15/30lagx 100 & x_away next page >


game board
summary

sumx and sumo
sumx to xmap
xmap between x add
xmap between x less
xmap more samples
zeroX and zeroO
xmap editing
x_plus and middx
x_plus and zeroX
x_away and o_away
xRCboard and liftx
xRCboard add & less
xmap to lagx
lagx 5000 & x_away
lagx 100 & x_away
lagx 10 and lagx 1
lagx to x_tack
xRCboard allways
flagx allways

delayx
dilayx
pred_x
pred_x to xmap
choose from flagx
more delay
more delay samples
three
crossmix
more delay use
flag to RCboard

summary

Editing "lagx" value 1000 according array "x_away" with restricted squares.
About restricted squares: see page 10





possible values in restriction squares on the same positions.




Rule: if "lagx" value is 1000 and "x_away" value for the same square position is bigger than 3, then change value in variable "lagx" on 0

examples in C++
change value in variable "lagx", if value on this position in array "x_away" is:

for (row = 0; row < 19; row++) {
  for (column = 0; column < 19; column++) {
    for (loop = 0; loop < 4; loop++) {
       if(xmap[row][column] > limit[(loop)]) lagx = xoflag[(loop)];
    }
    if((lagx == 5000) && (x_away[row][column] > 4)) lagx = 1000;
    if((lagx == 100) && (x_away[row][column] > 3))  {
      lagx = 0; xRCboard[row][column] = 2;  //o-, ox-, oxx- (o-x-x-o, o-xx--o)
    }
    //if(oxxx.-) lagx += 5; ((.) = here)
    //if(oxx.x-) lagx += 5; ((.) = here)
    flagx[row][column] = lagx; lagx = 0;
  }
}
go on: < previous page next page >
iM007: alike theme FREE SECTOR, 2014 (free alliance of developers Pixoria gomoku plug-in engines) page 15/30