ammmmmmmmmm
This commit is contained in:
parent
884af776fc
commit
20d4a8f432
3 changed files with 51 additions and 13 deletions
22
terminal engine/tengine.py
Normal file
22
terminal engine/tengine.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
from os import get_terminal_size
|
||||
|
||||
class tengine():
|
||||
tx, ty = get_terminal_size().columns, get_terminal_size().lines
|
||||
#feld = [[""]*10]*10
|
||||
feld = [["","","",],["","","",],["","","",]]
|
||||
test = 0
|
||||
for a in feld:
|
||||
for b in a:
|
||||
print(test)
|
||||
b = test
|
||||
test +=1
|
||||
print(feld)
|
||||
def strfeld():
|
||||
back = ""
|
||||
for a in tengine.feld:
|
||||
for b in a:
|
||||
back += b
|
||||
back += "\n"
|
||||
return back
|
||||
def addchar(character=str,position=list):
|
||||
tengine.feld[2][2] = "a"
|
15
terminal engine/test.py
Normal file
15
terminal engine/test.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#from tengine import tengine
|
||||
#tengine.addchar("a",[5,5])
|
||||
#print(tengine.feld)
|
||||
|
||||
feld = [["","","",],["","","",],["","","",]]
|
||||
feld[1][1] = "a"
|
||||
test = 0
|
||||
for a in feld:
|
||||
for b in a:
|
||||
print(test)
|
||||
b = test
|
||||
print(b)
|
||||
test +=1
|
||||
feld[1][1] = "a"
|
||||
print(feld)
|
Loading…
Add table
Add a link
Reference in a new issue