Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the following diagram, create a routing table for R1, R2 and R3 Solution #

ID: 3576210 • Letter: U

Question

Using the following diagram, create a routing table for R1, R2 and R3

Explanation / Answer

#include 00021 #include 00022 #include 00023 00024 #include "game.h" 00025 #include "aaball.h" 00026 00027 #define CHECKERS_CELL_SIZE 40 00028 #define CHECKERS_NUM_PIECES 4 00029 00030 #define CHECKERS_BOARD_WID 8 00031 #define CHECKERS_BOARD_HEIT 8 00032 00033 #define CHECKERS_WK 1 00034 #define CHECKERS_WP 2 00035 #define CHECKERS_BK 3 00036 #define CHECKERS_BP 4 00037 00038 #define CHECKERS_ISKING(x) (x == 1 || x == 3) 00039 #define CHECKERS_ISPAWN(x) (x == 2 || x == 4) 00040 00041 #define CHECKERS_ISWHITE(x) (x >= 1 && x = 3 && x board[i])) found_b = 1; 00104 if (!found_b) 00105 { 00106 strncpy (comment, who_str[0], 31); 00107 *commp = comment; 00108 return RESULT_WHITE; 00109 } 00110 if (!found_w) 00111 { 00112 strncpy (comment, who_str[1], 31); 00113 *commp = comment; 00114 return RESULT_BLACK; 00115 } 00116 return RESULT_NOTYET; 00117 } 00118 00119 byte * checkers_movegen (Pos *pos) 00120 { 00121 int i, j, diffx, diffy; 00122 byte movbuf [256]; 00123 byte *movlist, *mp = movbuf; 00124 byte *board = pos->board; 00125 Player player = pos->player; 00126 for (i=0; i