visual-arkanoid Activity
Brought to you by:
web8moon
starting adding is_cannot_move
slightly refactoring
import os import sys def main() -> int: WORK_DIR_NAME = "arkanoid" WORK_DIR_PATH = os.path.join(os.getcwd(), WORK_DIR_NAME) print(''' Перевірки існування шляху {dir} '''.format(dir=WORK_DIR_NAME)) if os.path.exists(WORK_DIR_PATH): if os.path.isfile(WORK_DIR_PATH): print("Існує файл з іменем " + WORK_DIR_NAME + " Продовження неможливе") return 1 else: if os.listdir(WORK_DIR_PATH): print("Робочий каталог " + WORK_DIR_NAME + " не порожній. Продовження неможливе") return 1 else: try: os.mkdir(WORK_DIR_NAME)...
Initial commit