// 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};
//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};
//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
NXT Packbot:
Part 3
LESSONS
A
bi-monthly
column for
kids!
FROM THE
LABORATORY
by James Isom
Let’s pick up where we left off in December
and finish up the main chassis of the Packbot.
Right Side:
Parts:
STEP 2:
Parts:
Rear Chassis Assembly:
The two sides are mirror images of one another
that come together with a middle bracket that
will eventually help organize the wires for your
motors and sensors. Once again, I’ll include
instructions for both sides to make it easier.
STEP 1:
STEP 3:
Parts:
STEP 4:
Parts:
Parts:
STEP 5:
STEP 6:
Parts:
STEP 7:
Parts:
SERVO 02.2008 67