Advertisement
angeldp

deepSpaceD6.py

Jan 2nd, 2024 (edited)
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.85 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. deepSpaceD6.py
  4.  
  5. Python version of 'Deep Space D-6' game
  6.  
  7. Created on Wed Dec 27 20:25:12 2023
  8.  
  9. @author:
  10. """
  11. # IMPORTS
  12. import configparser
  13. from main.ds_main_functions import main_program
  14.  
  15.  
  16. file = "config.ini"
  17. config = configparser.ConfigParser()
  18. config.read(file)
  19. ncards = config.getint('mode', 'duration')
  20. level = config.get('mode', 'level')
  21. space_ship = config.get('ships', 'ship')
  22. if space_ship == "halcyon":
  23.     ship = [8, 4]
  24. elif space_ship == "athena":
  25.     ship = [5, 6]
  26. elif space_ship == "AG-8":
  27.     ship = [10, 2]
  28. elif space_ship == "mononoaware":
  29.     ship = [5, 5]
  30. else:
  31.     space_ship = "Unknown"
  32.     ship = [8, 4]
  33. deck = list(range(0, ncards))
  34. scant = 0
  35. crewn = 6
  36. print(f'Wellcome to the ship ยซ{ship}ยป')
  37. print(f'You have chosen the {level} mode')
  38. main_program(ship, deck, scant, crewn)
  39. exit(0)
  40.  
Tags: DeepSpace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement