clear
This commit is contained in:
1 parent
87f113daf2
commit
dc4d318f5c
1 file changed
+13
@@ -1,5 +1,11 @@
|
|||||||
|
import sys
|
||||||
|
from os import name, system
|
||||||
|
|
||||||
hraci = {}
|
hraci = {}
|
||||||
|
|
||||||
|
def clear() -> None:
|
||||||
|
_ = system('cls') if name == 'nt' else system('clear')
|
||||||
|
|
||||||
def char_create() -> bool:
|
def char_create() -> bool:
|
||||||
global hraci
|
global hraci
|
||||||
|
|
||||||
@@ -28,7 +34,14 @@ def char_create() -> bool:
|
|||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
if char_create():
|
if char_create():
|
||||||
|
clear()
|
||||||
print("Vytvoření hráči:", ", ".join(list(hraci.keys())))
|
print("Vytvoření hráči:", ", ".join(list(hraci.keys())))
|
||||||
|
else:
|
||||||
|
print("Nastala chyba při vytváření uživatelů.")
|
||||||
|
sys.exit()
|
||||||
|
input("Stiskněte libovolnou klávesu pro pokračování. ")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
Reference in new issue
Block a user