Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- deepSpaceD6.py
- Python version of 'Deep Space D-6' game
- Created on Wed Dec 27 20:25:12 2023
- @author:
- """
- # IMPORTS
- import configparser
- from main.ds_main_functions import main_program
- file = "config.ini"
- config = configparser.ConfigParser()
- config.read(file)
- ncards = config.getint('mode', 'duration')
- level = config.get('mode', 'level')
- space_ship = config.get('ships', 'ship')
- if space_ship == "halcyon":
- ship = [8, 4]
- elif space_ship == "athena":
- ship = [5, 6]
- elif space_ship == "AG-8":
- ship = [10, 2]
- elif space_ship == "mononoaware":
- ship = [5, 5]
- else:
- space_ship = "Unknown"
- ship = [8, 4]
- deck = list(range(0, ncards))
- scant = 0
- crewn = 6
- print(f'Wellcome to the ship ยซ{ship}ยป')
- print(f'You have chosen the {level} mode')
- main_program(ship, deck, scant, crewn)
- exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement