// File:   checkers.cpp
// Date:   4 Mar 2005
// Author: Goldwasser
//
// This file serves as a stencil for the 'checkers' programming
// assignment, which makes use of the EzWindows graphics package.
//
// It can be compiled with the associated Makefile by typing 'make' 
// which results in an executable named 'checkers'


#include <iostream>
#include <sstream>

// the following includes a variety of shapes for your use
#include "circle.h"
#include "ellipse.h"
#include "label.h"
#include "ray.h"
#include "rect.h"
#include "square.h"
#include "triangle.h"


// Utility functions declared later in this file:
void delay(int=-1);




// Declare your own functions here for drawing a square and drawing a checker




// The main control for drawing the board should be in this function
int ApiMain() {








  // This next line forces the user to enter return before the program
  // ends.  (without this, your drawing would disappear immediately
  // upon reaching the end of the program)
  delay();
}




// This is the implementation of our delay utility.
//     YOU DO NOT NEED TO BOTHER READING IT
void delay(int waittime) {

  if (waittime>=0)
    sleep(waittime);
  else {
    cout << "press return to continue" << endl;
    cout << "(or Cntr-C to force exit)" << endl;
    char buffer[201];
    cin.getline(buffer,200);

    while (cin.eof());  // force infinite loop, for lack of better solution at this time
  }
}
