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) {
...