This commit is contained in:
ImFlizzyy 2022-12-23 02:11:41 +01:00
parent ad3f491a81
commit 031f2373d2
3 changed files with 8 additions and 5 deletions

View file

@ -98,8 +98,8 @@ class Matrix:
def print(self): def print(self):
for i in range(self.lines): for i in range(self.lines):
for j in range(self.columns): for j in range(self.columns):
print(self.matrix[i][j], end="") print(self.matrix[i][j], end = "")
print(end="" if i < self.lines - 1 else "\r") print(end = "" if i < self.lines - 1 else "\r")
def set_string(self, x, y, chars): def set_string(self, x, y, chars):
for i in range(len(chars)): for i in range(len(chars)):
@ -115,4 +115,5 @@ class Matrix:
def add_matrix(self, x, y, matrix): def add_matrix(self, x, y, matrix):
for i in range(len(matrix)): for i in range(len(matrix)):
for j in range(len(matrix[i])): for j in range(len(matrix[i])):
self.set(self, x + j, y + i, matrix[i][j]) self.set(self, x + j, y + i, matrix[i][j])

View file

@ -163,4 +163,5 @@ class BOT:
self.trumpf_color = trumpf_color self.trumpf_color = trumpf_color
def __str__(self): def __str__(self):
return self.name return self.name

View file

@ -87,4 +87,5 @@ class PLAYER:
- cards: list - cards: list
list of cards list of cards
''' '''
self.cards = cards self.cards = cards