| 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 |
Free square position fast beside square with actual player sign is for the same player good square. Rules for insert value to array on position first free square near by engaged square: Sample using this for square favoured: see page 12
rules for near by free square: Value in variable "midd" is dependent on order of player: if engine is first ("x") player: middx = 1, middo = 1 if engine is second ("o") player: middx = 11, middo = 11 |
||||
|
examples in C++
add to near (x) position here in array: //>> if here(matRCboar[][] == 'N') and if next(matRCboar[][] == 'N') and: if((sumx > 0) && (sumx < 3) && (xosum == sumx)) x_plus[][] += 1; //>> if(-x-- or -xx--) then (0x10 or 0xx10) add to between (x) position here in array: //>> if(-x-x--)x_plus[][] += middx; (then 0x1x00 (middx = 1)) //<< if(--x-x-) and: if(x_plus[][] < middx)) x_plus[][] += middx; //then (00x1x0 and or 00x1x00) |
|||||
| go on: | < previous page | next page > | |||
| FREE SECTOR, 2014 (free alliance of developers Pixoria gomoku plug-in engines) | page 8/30 | ||||