| 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 |
Choose some values from array "flagx" and write to now free array "x_away on the same square position other value. Search "flagx" values for dilayx and delayx structures and bigger than this. More about bigger flagx values: see page 18 More about delay structures: see page 19 and about dilay structures: see page 20
Other sample. Values in array "o_away" is recorded for "more delays" searching (see next page).
|
||||
|
examples in C++
Filter for values in array "flagx". If any value go over, write to array "x_away" on the same square position new value: //erase all values in array "x_away" ant this is now free for next use if((flagx[][] > 196) && (flagx[][] < 1000)) x_away[][] = 1; if(flagx[][] == 1097) x_away[][] = 10; if((flagx[][] > 1097) && (flagx[][] < 5000)) x_away[][] = 100; if(flagx[][] > 4999) x_away[][] = 1000; |
|||||
| go on: | < previous page | next page > | |||
| FREE SECTOR, 2014 (free alliance of developers Pixoria gomoku plug-in engines) | page 23/30 | ||||