Fix early game over bug

This commit is contained in:
Lonami Exo 2017-01-26 19:27:17 +01:00
parent 5c9280962b
commit 9de4bb2530

View file

@ -55,8 +55,8 @@ public class Board {
}
public boolean canPutPiece(Piece piece) {
for (int i = 0; i < piece.cellRows; i++) {
for (int j = 0; j < piece.cellCols; j++) {
for (int i = 0; i < cellCount; i++) {
for (int j = 0; j < cellCount; j++) {
if (canPutPiece(piece, j, i)) {
return true;
}