Advanced Placement Computer Science AB:
Assignment 4
    Sewickley Academy, 2000-2001

See Course Home Page.
 
Date Assigned: Thu Sep-21
Date Due: Mon Sep-25 by start of P8

// AP CS assignment 4
// Write intializeChessBoard() and printChessBoard() below.

#include "stdafx.h"
#include <iostream.h> // for cout

// 0 = no piece
// + = white, - = black

const int EMPTY = 0;
const int PAWN = 1;
const int ROOK = 2;
const int BISHOP = 3;
const int KNIGHT = 4;
const int QUEEN = 5;
const int KING = 6;

const int scores[KING+1] = {0,1,5,3,3,9,100};

int g_chessBoard[8][8];

// Put pieces into g_chessBoard assuming white plays on the "bottom",
// where 0,0 is bottomleft.  Use iterators for pawns and blanks.
void initializeChessBoard()
{
}

// Prints g_chessBoard regardless of its state in some very pretty
// fashion.
void printChessBoard()
{
}

int main(int argc, char* argv[])
{
 initializeChessBoard();
 printChessBoard();
 getchar();
 return 0;
}
 



See Course Home Page.