Skip to content

Commit

Permalink
fix: correct the clearRow methods assignment of result
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Apr 9, 2024
1 parent bb54a5c commit f65e835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def clearRow(self, rownumber: int):
# Fjerner den angitte raden og legger til en ny tom rad ved bunnen av matrisen
newMatrix = self.board[:rownumber] + self.board[rownumber + 1 :]
newMatrix.append([0 for _ in range(self.columns)])
self.matrix = newMatrix # Oppdaterer matrisen med den nye matrisen
self.board = newMatrix # Oppdaterer matrisen med den nye matrisen
self.rowsRemoved += 1 # Oppdaterer antall fjernede rader

def checkGameState(self):
Expand Down

0 comments on commit f65e835

Please sign in to comment.