Skip to content

Commit

Permalink
fix: make import statement correspond with file
Browse files Browse the repository at this point in the history
  • Loading branch information
JonBergland committed Apr 2, 2024
1 parent c031af8 commit 9016dfe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/game/board.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pygame
import random
from Block import Block
from block import Block

'''
Denne skriver ut brettet i terminal bare.
Expand All @@ -24,6 +24,8 @@ def __init__(self):
newLine.append(0)
self.board.append(newLine)

self.block = Block(0,5, random.randint(0,6))


def printBoard(self):
for row in self.board:
Expand All @@ -37,7 +39,7 @@ def rotateBlockRight(self):

def moveBlockDown(self):
if self.block.moveDown().validMove():
self.placeBlock(block.move_down())
self.placeBlock(self.block.move_down())



Expand All @@ -53,7 +55,7 @@ def moveBlockRight(self):

def rotateBlockLeft(self):
if self.block.rotateLeft().validMove():
self.plaser_brikke(self.block.roter_left())
self.placeBlock(self.block.rotate_left())


def gameOver(self):
Expand Down

0 comments on commit 9016dfe

Please sign in to comment.