![]() |
FS 03 /HOW MAKE IT: very shortly PICTORIAL GUIDE after GOMOKU ENGINE code | ![]() |
|||
go on: | < previous page
![]() ![]() ![]() |
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 |
"Three" is symmetrical structure with two free squares on his both ends, which contains in arrays "flag" values 5000(D). Others structures, which contains only one D is not "three". ![]() Engine "three" uses for defence. Add to "three's" D squares "flag" values from near by free squares. Don't add "flag" values from the same direction with actual "three" structure (>> M). In this sample are engine first player (X) and is on move. Without "three" have both D squares the same priority. With "three" have higher priority D square on left side because this "flago" value is now 5100. ![]() If in the near by free square is "delay" (1098) or "dilay" (1097) "flag" value , add this value to near by D wholly. In this sample add to D "delay" value 1098. Value in left D square is now 6098. ![]() |
||||
examples in C++
saearch "three" in horizontal direction ( >> ) and add "flgx" values from near by squares: //int xoflag[4] = {0, 100, 1000, 5000}; |
|||||
go on: | < previous page | next page > | |||
iM007: alike theme | FREE SECTOR, 2014 (free alliance of developers Pixoria gomoku plug-in engines) | page 26/30 | |||