Ah i see, i got it working now anyways thanks.
Type: Posts; User: glennder
Ah i see, i got it working now anyways thanks.
I reposted the shortend version
switch (board.pieceAt(row,col)) {
That is the line it crashes on,
the pieceAt method is below
int pieceAt(int row, int col) {
return board[row][col];
}
I am creating a checkers game and im trying to paint the board but it says the switch is using a string, but its actually not. Here is the code
public void paintComponent(Graphics g) {
...
Ah ok thanks.
Ok Thanks doesnt sound too bad, do you mean GUI - meaning implementing the basic rules as in moving pawns and jumping pawns etc?
This is quite a strange question probably but i will try ask it anyway. I am dabbling in some AI within gaming. I am going to try to create a checkers game with a very very simple gui just showing...
My name is Glenn i am in my last year of my university course - studying Software Engineering. A friend recommended this site as he had used it frequently in his final year to help support his...