Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple scan instructions, only first one works.
#3
Thanks, it works Smile

Another question:

How would a function/sub for the

Macro method2
Code:
Copy      Help
out "White Pawn coordinates";;output coordinates of white pawns and total number.
int A
for A 0 WP.len
,NWP=WP[A]
,out "left=%i top=%i right=%i bottom=%i" NWP.left NWP.top NWP.right NWP.bottom
out "Total=%i" A
WP.redim
out "Black Pawn coordinates";;output coordinates of Black pawns and total number.
int B
for B 0 BP.len
,NBP=BP[B]
,out "left=%i top=%i right=%i bottom=%i" NBP.left NBP.top NBP.right NBP.bottom
out "Total=%i" B
BP.redim
out "White Knight coordinates";;output coordinates of white knights and total number.
int C
for C 0 WN.len
,NWN=WN[C]
,out "left=%i top=%i right=%i bottom=%i" NWN.left NWN.top NWN.right NWN.bottom
out "Total=%i" C
WN.redim
out "Black Knight coordinates";;output coordinates of black knights and total number.
int D
for D 0 BN.len
,NBN=BN[D]
,out "left=%i top=%i right=%i bottom=%i" NBN.left NBN.top NBN.right NBN.bottom
out "Total=%i" D
BN.redim
out "White Bishop coordinates";;output coordinates of white bishops and total number.
int E
for E 0 WB.len
,NWB=WB[E]
,out "left=%i top=%i right=%i bottom=%i" NWB.left NWB.top NWB.right NWB.bottom
out "Total=%i" E
WB.redim
out "Black Bishop coordinates";;output coordinates of black bishops and total number.
int F
for F 0 BB.len
,NBB=BB[F]
,out "left=%i top=%i right=%i bottom=%i" NBB.left NBB.top NBB.right NBB.bottom
out "Total=%i" F
BB.redim
out "White Rook coordinates";;output coordinates of white rooks and total number.
int G
for G 0 WR.len
,NWR=WR[G]
,out "left=%i top=%i right=%i bottom=%i" NWR.left NWR.top NWR.right NWR.bottom
out "Total=%i" G
WR.redim
out "Black Rook coordinates";;output coordinates of black rooks and total number.
int H
for H 0 BR.len
,NBR=BR[H]
,out "left=%i top=%i right=%i bottom=%i" NBR.left NBR.top NBR.right NBR.bottom
out "Total=%i" H
BP.redim
out "White Queen coordinates";;output coordinates of white queens and total number.
int I
for I 0 WQ.len
,NWQ=WQ[I]
,out "left=%i top=%i right=%i bottom=%i" NWQ.left NWQ.top NWQ.right NWQ.bottom
out "Total=%i" I
WQ.redim
out "Black Queen coordinates";;output coordinates of black queens and total number.
int J
for J 0 BQ.len
,NBQ=BQ[J]
,out "left=%i top=%i right=%i bottom=%i" NBQ.left NBQ.top NBQ.right NBQ.bottom
out "Total=%i" J
BQ.redim
out "White King coordinates";;output coordinates of white king and total number. Total number should obviously be "1".
int K
for K 0 WK.len
,NWK=WK[K]
,out "left=%i top=%i right=%i bottom=%i" NWK.left NWK.top NWK.right NWK.bottom
out "Total=%i" K
WK.redim
out "Black King coordinates";;output coordinates of black king and total number. Total number should obviously be "1".
int L
for L 0 BK.len
,NBK=BK[L]
,out "left=%i top=%i right=%i bottom=%i" NBK.left NBK.top NBK.right NBK.bottom
out "Total=%i" L
BK.redim

part look like?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)