Fix early game over bug
This commit is contained in:
parent
5c9280962b
commit
9de4bb2530
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue