Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 64; i++) {
- int cellX = i % 8;
- int cellY = i / 8;
- if (squareTypes[i] == 0)
- g.drawImage(boardSquare, cellX * 32, cellY * 32, this);
- if (squareTypes[i] == 1)
- g.drawImage(whitePiece, cellX * 32, cellY * 32, this);
- if (squareTypes[i] == 2)
- g.drawImage(blackPiece, cellX * 32, cellY * 32, this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement