--- /dev/null
+import sys
+
+from pacman.config import load_config
+from pacman.error import error
+from pacman.game import Game
+
+
+def main() -> None:
+ try:
+ file_path = sys.argv[1]
+ except IndexError:
+ file_path = ""
+ config = load_config(file_path)
+ try:
+ Game(config)
+ except KeyboardInterrupt:
+ error("keyboardInterrupt.")
-import sys
-
-from pacman.config import load_config
-from pacman.error import error
-from pacman.game import Game
-
-
-def main() -> None:
- try:
- file_path = sys.argv[1]
- except IndexError:
- file_path = ""
- config = load_config(file_path)
- try:
- Game(config)
- except KeyboardInterrupt:
- error("keyboardInterrupt.")