Exemplo n.º 1
0
def pickPlanets():
    slowdown("Here are planet options you have")

    planets_inventory = ["1", "2"]
    user_choice = ""

    planet1 = planets(
        "Wilderness",
        "A planet with small villages.The intelligence we have indicates that someone in the village has information about the evil plan and knowledge of where to find more clues. This planet has many places for enemies to hide and construct their plans. You never know what clues you might find left behind. "
    )
    planet1.Identify()
    planet1.introducePlanet()
    planets_inventory.append(planet1)

    planet2 = planets(
        "City",
        "Urban planet at the center of the galaxy’s trade and government. Many important people live and work here, but you never know what is hiding in back alleys."
    )
    planet2.Identify()
    planet2.introducePlanet()
    planets_inventory.append(planet2)

    while user_choice not in planets_inventory:
        slowdown(
            "Choose between 1) Wilderness and 2) City for the planet of your choice"
        )
        user_choice = str(input("Insert your number choice: "))
    if user_choice == planets_inventory[0]:
        print("Your destination is Planet Wilderness.")
    elif user_choice == planets_inventory[1]:
        print("Your destination is Planet City.")
Exemplo n.º 2
0
 def excavate(self):
     slowdown(
         "It's great that you excavated " + str(self.__leaves) +
         "bunch of leaves because the enemy used it as a chill spot. The " +
         str(self.__wallet) +
         " wallet you found has their finger prints, and what looks like a coded message."
     )
Exemplo n.º 3
0
 def AskVillagers(self):
     converse_options = ["1", "2"]
     user_choice = ""
     while user_choice not in converse_options:
         slowdown(
             "\nYou decide to ask the villagers some questions. You approach a fruit vendor and decide to question them. \nWhich approach will you choose? \n 1)Hello. Have you had any unusual visitors recently? \n 2)Have you see anything suspicious lately?"
         )
         user_choice = str(input("Enter option number: "))
     if user_choice == converse_options[0]:
         slowdown(
             "Vendor: 'Yes, actually. A suspicious man bought" +
             str(self.__bags) + " bags of cereal and" +
             str(self.__WaterCan) +
             "Water can. He went filling his water can at the watering hole then disappeared to the forest'"
         )
     elif user_choice == converse_options[1]:
         slowdown(
             "\nVendor: 'What do you mean by suspicious? How do I know you aren't suspicious? Find someone else to talk to.'"
         )
         slowdown(
             "\nYou decide to try again. You approach another villager. You ask her if she's seen any new visitors lately."
         )
         slowdown(
             "\nVillager: 'Yes, actually. I saw a suspicious man buy " +
             str(self.__bags) + " bags of cereal and " +
             str(self.__WaterCan) +
             " Water can. He went to fill his water can at the watering hole.'"
         )
         input("\n\nPress the enter key to continue.")
Exemplo n.º 4
0
def wateringHole():
    slowdown(
        "\n\nYou decide to see if anyone near the watering hole remembers the stranger."
    )
    slowdown(
        "\nYou see a woman filling a jug with water and ask if she saw anyone recently. \n Villager: 'Yes, actually. It was strange. A man was getting a drink and speaking on a communicator. He mentioned something about 2 weeks but I don't know what. I did see him head to the forest after, though.' \n You thank the villager and head to the forest."
    )
    input("\n\nPress the enter key to continue")
Exemplo n.º 5
0
 def display_instruct():
     """Display game instructions."""
     slowdown("""
     In order to understand the secret code left behind by the villains you must decode by playing a game: Tic-Tac-Toe.  
     This may be challenging but you must complete the game in order to get the solution. 
 
     You will make your move known by entering a number, 0 - 8.  The number 
     will correspond to the board position as illustrated:
     
                     0 | 1 | 2
                     ---------
                     3 | 4 | 5
                     ---------
                     6 | 7 | 8
 
     Prepare yourself.  The fate of the galaxy depends on it! \n
     """)
Exemplo n.º 6
0
    def congrat_winner(the_winner, computer, human):
        """Congratulate the winner."""
        if the_winner != TIE:
            print(the_winner, "won!\n")
        else:
            print("It's a tie!\n")

        if the_winner == computer:
            print("The code was too difficult to crack.  \n" \
                  "You should try again.")
            main()

        elif the_winner == human:
            slowdown("You have decoded the clue successfully. \n" \
                  "The code the villain left is referring to coordinates on the desert planet. You remember the villager mentioned a date set for two weeks from now. \nWe still don't know enough to venture to the planet yet, but time is of the essence.")
            input("\n\nPress the enter key to continue your journey.")
        elif the_winner == TIE:
            slowdown("The code was too difficult to crack.  \n" \
                  "You should try again.")
            main()
Exemplo n.º 7
0
def clearingLook():
    slowdown("You see the remains of a fire and some piles of leaves.")
    lookat = ["1", "2"]
    user_choice = ""
    while user_choice not in lookat:
        slowdown(
            "\nWhat do you want to excavate? \n1)The fire. \n2) The leaves.")
        user_choice = str(input("Enter option number: "))
    if user_choice == lookat[0]:
        slowdown(
            "\nYou dig through the ashes of the fire but find nothing. You decide to look at the leaves."
        )
        findhowmany()
    elif user_choice == lookat[1]:
        findhowmany()
        input("\n\nPress the enter key to continue.")
        slowdown(
            "\nBefore heading back to your ship, you must decode the clue.")
Exemplo n.º 8
0
def visitForest():
    slowdown(
        "\n\n Now that you've found information in the village, you begin to walk through the dark trees beyond the village. "
    )
    explore_options = ["1", "2"]
    user_choice = ""
    while user_choice not in explore_options:
        slowdown(
            "\nYou see what looks like be a clearing in the forest to your right and a river to your left.\n You choose to turn \n1) right towards the clearing. \n2) left towards the river."
        )
        user_choice = str(input("Enter your option number: "))
    if user_choice == explore_options[0]:
        clearingLook()
    if user_choice == explore_options[1]:
        slowdown(
            "You follow the river, but the water seems to have washed away any evidence that might have existed. \n You decide to turn back and explore the clearing."
        )
        input("\n\nPress the enter key to continue")
        clearingLook()
Exemplo n.º 9
0
 def introducePlanet(self):
     slowdown(self.__description)
     return self.__description
Exemplo n.º 10
0
 def Identify(self):
     slowdown(self.__name)
     return self.__name
Exemplo n.º 11
0
@author: jenpr
"""

from introduction import intro
from slowprint import slowdown
"""importing equipment module and inventory to enable a review of the inventory"""
import inventory
import equipment_general
from inventory import printList
"""start the game with introduction"""
print(intro())
"""print inventory list"""
printList()
slowdown(
    "Now we will look at two locations where there have been rumors of trouble."
)
input("\n\nPress the enter key to continue")
"""import planets to enable review of planet options"""
import planets
from planets import pickPlanets
"""in future choice of planet will determine next steps. at the moment, you must choose wilderness"""
pickPlanets()
slowdown(
    "Now to equip you for your mission. You can refer back to the Inventory for your options."
)
"""import armory to allow players to choose equipment for missions"""
import armory
from armory import fillBackpack

fillBackpack()
Exemplo n.º 12
0
def intro():
    slowdown("Welcome to Undercover Agent – A mission to save the galaxy ")
    name = input("Insert your name")
    print("\nHello Agent", name)
    input("\n\nPress the enter key to continue to the rules of the game.")

    #Rules of the game
    slowdown("\n\n These are rules of the game")
    slowdown(
        "\n\nRule 1. The theme of the game is mysterious & adventurous. You must pick equipment based on how you envision this adventurous game to go in order to save the galaxy."
    )
    input("\n\nPress the enter key to continue to the next rule.")

    slowdown(
        "\n\nRule 2. The game escalates based on levels, each level will unlock as you finish one level"
    )
    input("\n\nPress the enter key to continue to the next rule.")

    slowdown(
        "\n\nRule 3. You will be awarded points based on how successful you are on every level of the game. The highest point is 5 and the lowest is 0"
    )
    input("\n\nPress the enter key to continue to continue to the last rule.")

    slowdown(
        "\n\nRule 4. Once you start the game, you will have to finish it. There is no turning back"
    )
    input("\n\nPress the enter key to continue to your mission.")

    #About the game
    slowdown(
        "\nAbout the Galaxy: The galaxy has been at peace for 100 years. But intelligence has been gathered indicating that there are forces trying to destroy that peace, and with it, the galaxy itself! Your mission is to travel the galaxy, make contacts and gather clues in order to stop their evil plan in its tracks and save the galaxy."
    )
    input("\n\nPress the enter key to continue.")

    #Building the game
    slowdown(
        "\nThis is your ship. As you endeavor to save the galaxy, this ship will be your central hub. From here, you can check your equipment inventory, find information about the planets you may be traveling to, choose your equipment and choose your destination."
    )
    slowdown("\nAre you ready to start exploring your ship?")
    input("\n\nPress the enter key to continue.")

    slowdown(
        "\nYour first stop on the ship is your equipment inventory. We will look at your equipment now."
    )
    input("\n\nPress the enter key to continue")
Exemplo n.º 13
0
def visitMarket():
    slowdown(
        "\n \nYou walk into the village, alert for signs of trouble. People look surprised to see a stranger. If the intergalactic trouble-makers were here, the villagers would probably remember them."
    )
    lookAround()
Exemplo n.º 14
0
def wildIntro():
    slowdown('''You have landed on the Wilderness planet.   
You can see a village with a bustling marketplace, and a forest in the far distance. You decide to start in the village.'''
             )
    visitMarket()
Exemplo n.º 15
0
 def dangerLevel(self):
     slowdown(self.__danger)
     return self.__danger
Exemplo n.º 16
0
def lookAround():
    slowdown(
        "You see villagers buying their daily groceries and vendors trying to catch your attention with their products."
    )
 def printItem(self):
     slowdown(self.__name + "\n")
     slowdown(self.__description + "\n")
     slowdown(self.__isGoodFor)
     return self.__name, self.__description, self.__isGoodFor