mirror of
https://github.com/JonasunderscoreJones/EPR-Gruppenabgabe-07.git
synced 2025-10-23 01:39:18 +02:00
.
This commit is contained in:
parent
ad3f491a81
commit
031f2373d2
3 changed files with 8 additions and 5 deletions
|
@ -98,8 +98,8 @@ class Matrix:
|
|||
def print(self):
|
||||
for i in range(self.lines):
|
||||
for j in range(self.columns):
|
||||
print(self.matrix[i][j], end="")
|
||||
print(end="" if i < self.lines - 1 else "\r")
|
||||
print(self.matrix[i][j], end = "")
|
||||
print(end = "" if i < self.lines - 1 else "\r")
|
||||
|
||||
def set_string(self, x, y, chars):
|
||||
for i in range(len(chars)):
|
||||
|
@ -115,4 +115,5 @@ class Matrix:
|
|||
def add_matrix(self, x, y, matrix):
|
||||
for i in range(len(matrix)):
|
||||
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])
|
||||
|
|
@ -163,4 +163,5 @@ class BOT:
|
|||
self.trumpf_color = trumpf_color
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
return self.name
|
||||
|
|
@ -87,4 +87,5 @@ class PLAYER:
|
|||
- cards: list
|
||||
list of cards
|
||||
'''
|
||||
self.cards = cards
|
||||
self.cards = cards
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue