public class ChessProg {
final int xmin = 0;
final int ymin = 0;
final int xmax = 7;
final int ymax = 7;
final int xn = 8;
final int yn = 8;
final int north = 0;
final int east = 1;
final int south = 2;
final int west = 3;
final boolean lives = true;
final boolean death = false;
public static void main (String [] args) {
}
class Gambler {
}
class Board {
Figure [][] board = new Figure [yn][xn];
Gambler white;
Gambler black;
void initBoard () {
board [0][0] = new Rook (0, 0);
board [0][1] = new Knight ();
board [0][2] = new Bishop ();
board [0][3] = new King ();
board [0][4] = new Queen ();
board [0][5] = new Bishop ();
board [0][6] = new Knight ();
board [0][7] = new Rook (0, 7);
}
}
class Figure {
int x;
int y;
boolean alive;
int getx() {return x;}
int gety() {return y;}
boolean isalive() {return alive;}
void setdeath() {alive = death;}
void setalive() {alive = lives;}
void setx(int x) { this.x = x;}
void sety(int y) {this.y = y;}
}
class Pawn extends Figure {
}
class Rook extends Figure {
Rook(int x, int y) {
setalive();
setx (x);
sety (y);
}
}
class Knight extends Figure {
}
class Bishop extends Figure {
}
class King extends Figure {
}
class Queen extends Figure {
}
class Empty extends Figure {
}
}