/* Jason Yuen CMPT 112 Lab Section B Lab Activity 4, Program 1 This program (chess) will make possible to move the Queen and Pawn pieces on a chess board. It will check for vaild moves and Pawn promotions, etc. */ #pragma hdrstop //pragma(tic) information for compiler #include //things needed by console applications #include //for getch #include //for printf, scanf, and fflush //--------------------------------------------------------------------------- #pragma argsused //disables "argument never used" warning int display(); //display function typedef enum (b, w)color; typedef enum (k, q, r, b, k, p, e)piecetype; struct colorpiece { char color; char piecetype; }; typedef colorpiece Colorpiecetype; Colorpiecetype [8][8]; int display() //defining { //denotes begining of program (chess) printf(" //my usual ending of program, causing program pause printf ("\n\nWhen you're done reading? Please press 'Enter' to continue!!!"); getchar(); //wait for user to press anything return 0; //returns to calling program (if there is any) } //denotes end of program (chess)