// castling bonuses
B8 castleRates[]={- 40,- 35,- 30,0, 5};
//center weighting array to make pieces prefer
//the center of the board during the rating routine
B8 center[]={0,0,1,2, 3, 3,2,1,0,0};
LESSONS
//directions: orthogonal, diagonal, and left/right
from orthogonal for knight moves
B8 directions[]={-1,1,- 10, 10,- 11,- 9, 11, 9, 10,- 10,1,-
1};
//direction pointers for each piece (only really for
bishop rook and queen
B8 dirFrom[]={0,0,0, 4,0,0};
B8 dirTo[]={0,0,0, 8, 4, 8};
FROM THE
//Good moves from the current search are stored in
this array
//so we can recognize them while searching and make
sure they are tested first
LABORATORY
NXT Packbot:
Part 4
by James Isom
Welcome to the final installment of Packbot instructions. There’s
not much left now, so let’s get right to it and wrap it up.
STEP 1:
Parts:
Connect wires to each of the three motors and run them around the friction
pins to the front of the Packbot. The ultrasonic sensor wire can stay towards
the back. Looking from this perspective, the right motor will be connected
to Port C, the bottom left motor to Port B, and the top left motor to Port A.
The ultrasonic sensor will eventually find its way to Sensor Port 1.
STEP 2:
Parts:
Cap off the rear cable management
system with a 1 x 5 lift arm.
STEP 3:
STEP 4:
Parts:
Parts:
78 SERVO 04.2008