Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Code for fernando the virtual robot
- #Thank you to SkicoNow and VTMagno who helped in the process of making this
- #Coding note: the "@" symbol is a special character for this program
- import random #random module needed for RNG
- #DATA yay
- characters = ["Play as any character",
- "Play as Yoshi",
- "Play as Mario",
- "Play as Luigi",
- "Play as Wario"]
- notes = "If you get something like BOB8 this means get the 100 coin star for that level"
- caps = ["You cannot get caps", "You may get caps"]
- nonStarObjectives = {1:"collect @ coins",
- 2:"collect two 1-ups",
- 3:"Break all the ? blocks",
- 4:"Break all the ! blocks",
- 5:"collect @ of 8 red coins",
- 6:"collect 4 of 5 silver stars",
- 7:"kill all enemies"}
- handicapSet1 = [("You cannot use more than @ B press(es)",(0,20)),
- ("Your TAS must have exactly @ B press(es)",(0,20)),
- ("You must ground pound exactly @ time(s)",(1,5)),
- ("The total of long jumps and jumps in your TAS"+
- " must sum to @",(15,20)),
- ("The sum of long jumps and jumps in your TAS"+
- " must be @",(15,30)),
- ("You cannot use more than @ A press(es)",(0,5)),
- ("Your TAS must have exactly @ A press(es)",(0,20))]
- handicapSet2 = [("You must collect exactly @ coin(s)",(20,100)),
- ("You cannot collect more than @ coin(s)",(0,20)),
- ("The use of the touchscreen is banned",(0,0)),
- ("You must finish on exactly half health",(0,0)),
- ("You cannot kill more than @ enemie(s)",(0,3)),
- ("You cannot use cannons",(0,0))]
- handicapSet3 = [("You must eat exactly @ object(s) as yoshi",(0,5)),
- ("You must grab exactly @ cap(s) as yoshi",(1,3)),
- ("You must do exactly @ spit jump(s) as yoshi",(1,5)),
- ("You must wall jump before collecting every object",(0,0)),
- ("You cannot make eggs as yoshi",(0,0)),
- ("You must use a cannon exactly @ time(s)",(0,3)),
- ("You must do exactly 1 dive reset",(0,0)),
- ("If you started the level as Mario, Luigi or Wario,"+
- " you must start with their cap not on their head",(0,0))]
- #The next line of code declares a 1D array of all 29 levels using their acronym names
- linearLvlsData = ['BOB', 'WF', 'JRB', 'CCM', 'BBH', 'HMC', 'LLL', 'SSL', 'DDD', 'SL', 'WDW', 'TTM', 'THI', 'TTC', 'RR', 'GB', 'BBB', 'CCC', 'BitDW', 'BitFS', 'BitS', 'BF', 'TSutM', 'PSS', 'SI', '?S', 'BtW', 'OtR', 'A']
- #The next lines of code delclares a 2D dictionary array that has data on lots of things
- complexLvlsData = {'BOB':
- {'reds':True,'silvers':True,'has!box':True,'has?box':True,
- 'hasEnemies':True,'maxCoins':139,
- 'loc0':"Start from the beginning of the level",
- 'loc1':"Start from the tree on the floating isle\nimages/BOB/location1.jpg",
- 'loc2':"Start from any inside any cannon",
- 'loc3':"Start by teleporting from the teleport in the image below\nimages/BOB/location3.jpg"},
- 'WF':
- {'reds': True, 'silvers': False, 'has!box': False, 'has?box': True,
- 'hasEnemies': True, 'maxCoins': 182,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start in the cannon near the Bob Omb buddy used to open it\nimages/WF/location1.jpg',
- 'loc2': 'Start by using the teleporter in the image below\nimages/WF/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'JRB':
- {'reds': True, 'silvers': False, 'has!box': True, 'has?box': True,
- 'hasEnemies': True, 'maxCoins': 140,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole in the image below\nimages/JRB/location1.jpg',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'CCM':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': False, 'hasEnemies': True, 'maxCoins': 157,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start in the cannon in the image below\nimages/CCM/location1.jpg',
- 'loc2': 'Start from the tree near the snowman\nimages/CCM/location2.jpg',
- 'loc3': 'Start by entering the slide house chimney'},
- 'BBH':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 119,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'HMC':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 136,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'LLL':
- {'reds': True, 'silvers': True, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 210,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'SSL':
- {'reds': True, 'silvers': True, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 139,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the palm tree\nimages/SSL/location1.jpg',
- 'loc2': 'Start in cannon\nimages/SSL/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'DDD':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 147,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from this pole\nimages/DDD/location1.jpg',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'SL':
- {'reds': True, 'silvers': True, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 131,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start by entering the igloo',
- 'loc2': 'Start from the tree on top of the snowman\nimages/SL/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'WDW':
- {'reds': True, 'silvers': True, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 150,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the cannon\nimages/WDW/location1.jpg',
- 'loc2': 'Start from any tree in the underwater town\nimages/WDW/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'TTM':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 144,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the cannon\nimages/TTM/location1.jpg',
- 'loc2': 'Start by teleporting in the teleporter in the image below\nimages/TTM/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'THI':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 157,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start by entering the cave that has red coins',
- 'loc2': 'Start in the cannon\nimages/THI/location2.jpg',
- 'loc3': 'Start by entering any small island pipe'},
- 'TTC':
- {'reds': True, 'silvers': True, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 124,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole with the amp\nimages/TTC/location1.jpg',
- 'loc2': 'Start from the pole at the top\nimages/TTC/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'RR':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 149,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole next to chuck-ya\nimages/RR/location1.jpg',
- 'loc2': 'Start in the cannon on the cruiser\nimages/RR/location2.jpg',
- 'loc3': 'Start by using the teleporter in the image\nimages/RR/location3.jpg'},
- 'GB':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 105,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole\nimages/mario unlock level/location1.jpg',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'BBB':
- {'reds': True, 'silvers': False, 'has!box': False,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 79,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'CCC':
- {'reds': True, 'silvers': False, 'has!box': False,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 79,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'BitDW':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 80,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'BitFS':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': False, 'hasEnemies': True, 'maxCoins': 80,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from pole 1\nimages/BitFS/location1.jpg',
- 'loc2': 'Start from pole 2\nimages/BitFS/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'BitS':
- {'reds': True, 'silvers': False, 'has!box': False,
- 'has?box': False, 'hasEnemies': True, 'maxCoins': 68,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole\nimages/BitS/location1.jpg',
- 'loc2': 'Start by grabbing this ledge anywhere:\nimages/BitS/location2.jpg',
- 'loc3': 'Start from the beginning of the level'},
- 'BF':
- {'reds': False, 'silvers': True, 'has!box': False,
- 'has?box': False, 'hasEnemies': True, 'maxCoins': 95,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the pole\nimages/battle fort/location1.jpg',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'TSutM':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 55,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start by collecting any power flower',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'PSS':
- {'reds': False, 'silvers': False, 'has!box': True,
- 'has?box': False, 'hasEnemies': False, 'maxCoins': 80,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'SI':
- {'reds': False, 'silvers': True, 'has!box': True,
- 'has?box': False, 'hasEnemies': True, 'maxCoins': 23,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from tree 1\nimages/sunshine isles/location1.jpg',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- '?S':
- {'reds': True, 'silvers': False, 'has!box': False,
- 'has?box': True, 'hasEnemies': False, 'maxCoins': 63,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'BtW':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': True, 'maxCoins': 63,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'},
- 'OtR':
- {'reds': True, 'silvers': False, 'has!box': True,
- 'has?box': True, 'hasEnemies': False, 'maxCoins': 40,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start by collecting any wing cap',
- 'loc2': 'Start in any cannon',
- 'loc3': 'Start from any of the vines\nimages/over the rainbows/location3.jpg'},
- 'A':
- {'reds': True, 'silvers': False, 'has!box': False,
- 'has?box': False, 'hasEnemies': False, 'maxCoins': 56,
- 'loc0': 'Start from the beginning of the level',
- 'loc1': 'Start from the beginning of the level',
- 'loc2': 'Start from the beginning of the level',
- 'loc3': 'Start from the beginning of the level'}}
- secretStars = {1: 'BitDW Reds', 2: 'BitDW Switch Star',
- 3: 'BitFS Reds', 4: 'BitFS Switch Star',
- 5: 'BitS Reds', 6: 'BitS Switch Star',
- 7: 'GB Reds', 8: 'GB Switch Star',
- 9: 'BBB Reds', 10: 'BBB Painting Star', 11: 'CCC Reds',
- 12: 'CCC Black box star', 13: 'BtW Reds',
- 14: 'BtW Main Star', 15: 'TSutM Reds',
- 16: 'TSutM Switch Star', 17: 'OtR Reds',
- 18: 'OtR black box star', 19: 'PSS ! box Star',
- 20: 'PSS Under 21 Star', 21: '?S Reds (? switch reds)',
- 22: 'SI Silvers (sunshine isles)', 23: 'A Reds (the secret aquarium reds)',
- 24: 'BF Silvers (battle fort silvers)'}
- def generateTask():
- possibleLvls = []
- #CHAR AND CAPS
- print("Character:")
- charRNG = random.randint(0,4)
- print(characters[charRNG])
- print("Caps:")
- capsRNG = random.randint(0,1)
- print(caps[capsRNG])
- print("Objective:")
- #OBJECTIVE TIME + location
- #There is a 40% chance the objective will be a
- #non-star objective
- #There is a 60% chance the objective will be to collect a specific star
- starOrNoRNG = random.randint(1,100)
- #1-40 means a no star objective
- if starOrNoRNG >= 1 and starOrNoRNG <= 40:
- noStarRNG = random.randint(1,len(nonStarObjectives))#RNG for noStar
- #objectives 0 and 1 are any level
- if noStarRNG == 2:#collect two 1-ups
- print(nonStarObjectives[noStarRNG])
- print("Location:")
- lvl = random.randint(0,28)
- lvl = linearLvlsData[lvl]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 1:#Collect @ coins
- lvl = random.randint(0,28)
- lvl = linearLvlsData[lvl]
- temp = nonStarObjectives[noStarRNG].split("@")
- coinTarget = random.randint(10,complexLvlsData[lvl]['maxCoins'])
- print(temp[0]+str(coinTarget)+temp[1])
- print("Location:")
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 3: #break all the ? blocks
- print("Break all the ? blocks")
- print("Location:")
- for level in complexLvlsData:
- if complexLvlsData[level]['has?block'] == True:
- possibleLvls.append(level)
- random.shuffle(possibleLvls)
- lvl = possibleLvls[0]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 4:#break all the ! blocks
- print("Break all the ! blocks")
- print("Location:")
- for level in complexLvlsData:
- if complexLvlsData[level]['has!block'] == True:
- possibleLvls.append(level)
- random.shuffle(possibleLvls)
- lvl = possibleLvls[0]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 5:#collect @ of 8 red coins
- temp = nonStarObjectives[noStarRNG].split("@")
- coinTarget = random.randint(3,7)
- print(temp[0]+str(coinTarget)+temp[1])
- print("Location:")
- for level in complexLvlsData:
- if complexLvlsData[level]['reds'] == True:
- possibleLvls.append(level)
- random.shuffle(possibleLvls)
- lvl = possibleLvls[0]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 6:#collect 4 of 5 silver stars
- print(nonStarObjectives[noStarRNG])
- print("Location:")
- for level in complexLvlsData:
- if complexLvlsData[level]['silvers'] == True:
- possibleLvls.append(level)
- random.shuffle(possibleLvls)
- lvl = possibleLvls[0]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif noStarRNG == 7:#kill every enemy
- print("Kill every killable enemy")
- print("Location:")
- for level in complexLvlsData:
- if complexLvlsData[level]['hasEnemies'] == True:
- possibleLvls.append(level)
- random.shuffle(possibleLvls)
- lvl = possibleLvls[0]
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- elif starOrNoRNG >= 41 and starOrNoRNG <=100:
- print("Collect the star: \"",end='')
- #41-100 means a star objective
- starRNG = random.randint(1,144)#this would be (1,150) but six of the stars in
- #the game are not recollectable so I thought I'd give them a skip
- #RANGES:
- #1-8 BOB
- #9-16 WF
- #17-24 JRB
- #25-32 CCM
- #33-40 BBH
- #41-48 HMC
- #49-56 LLL
- #57-64 SSL
- #65-72 DDD
- #73-80 SL
- #81-88 WDW
- #89-96 TTM
- #97-104 THI
- #105 -112 TTC
- #113-120 RR
- #121-144 SECRET STARS WOW!
- if starRNG >= 1 and starRNG <= 8:
- print("BOB",end='')
- print(str(starRNG-(8-8)),end='')
- lvl = "BOB"
- elif starRNG >= 9 and starRNG <= 16:
- print("WF",end='')
- print(str(starRNG-(16-8)),end='')
- lvl = "WF"
- elif starRNG >= 17 and starRNG <= 24:
- print("JRB",end='')
- print(str(starRNG-(24-8)),end='')
- lvl = "JRB"
- elif starRNG >= 25 and starRNG <= 32:
- print("CCM",end='')
- print(str(starRNG-(32-8)),end='')
- lvl = "CCM"
- elif starRNG >= (8*(5-1))+1 and starRNG <= (8*5):
- print("BBH",end='')
- print(str(starRNG-((8*5)-8)),end='')
- lvl = "BBH"
- elif starRNG >= (8*(6-1))+1 and starRNG <= (8*6):
- print("HMC",end='')
- print(str(starRNG-((8*6)-8)),end='')
- lvl = "HMC"
- elif starRNG >= (8*(7-1))+1 and starRNG <= (8*7):
- print("LLL",end='')
- print(str(starRNG-((8*7)-8)),end='')
- lvl = "LLL"
- elif starRNG >= (8*(8-1))+1 and starRNG <= (8*8):
- print("SSL",end='')
- print(str(starRNG-((8*8)-8)),end='')
- lvl = "SSL"
- elif starRNG >= (8*(9-1))+1 and starRNG <= (8*9):
- print("DDD",end='')
- print(str(starRNG-((8*9)-8)),end='')
- lvl = "DDD"
- elif starRNG >= (8*(10-1))+1 and starRNG <= (8*10):
- print("SL",end='')
- print(str(starRNG-((8*10)-8)),end='')
- lvl = "SL"
- elif starRNG >= (8*(11-1))+1 and starRNG <= (8*11):
- print("WDW",end='')
- print(str(starRNG-((8*11)-8)),end='')
- lvl = "WDW"
- elif starRNG >= (8*(12-1))+1 and starRNG <= (8*12):
- print("TTM",end='')
- print(str(starRNG-((8*12)-8)),end='')
- lvl = "TTM"
- elif starRNG >= (8*(13-1))+1 and starRNG <= (8*13):
- print("THI",end='')
- print(str(starRNG-((8*13)-8)),end='')
- lvl = "THI"
- elif starRNG >= (8*(14-1))+1 and starRNG <= (8*14):
- print("TTC",end='')
- print(str(starRNG-((8*14)-8)),end='')
- lvl = "TTC"
- elif starRNG >= (8*(15-1))+1 and starRNG <= (8*15):
- print("RR",end='')
- print(str(starRNG-((8*15)-8)),end='')
- lvl = "RR"
- elif starRNG >= 121 and starRNG <= 144:
- starRNG = starRNG - 120
- print(secretStars[starRNG],end='')
- temp = secretStars[starRNG].split(' ')
- lvl = temp[0]
- print("\"")
- print("Location:")
- print(lvl)
- startRNG = random.randint(0,3)
- print(complexLvlsData[lvl]["loc"+str(startRNG)])
- #HANDICAPS
- for i in range(1,4):
- variableHandicap = False
- print("Handicap "+str(i)+":")
- fifty50RNG = random.randint(0,1)
- if fifty50RNG == 0:
- print("(none)")
- else:
- if i == 1:
- handicapRNG = random.randint(0,len(handicapSet1)-1)
- for char in handicapSet1[handicapRNG][0]:
- if char == "@":
- variableHandicap = True
- if variableHandicap == False:
- print(handicapSet1[handicapRNG][0])
- else:
- temp = handicapSet1[handicapRNG][0].split('@')
- tempRNG = random.randint(handicapSet1[handicapRNG][1][0],handicapSet1[handicapRNG][1][1])
- print(temp[0]+str(tempRNG)+temp[1])
- if i == 2:
- handicapRNG = random.randint(0,len(handicapSet2)-1)
- for char in handicapSet2[handicapRNG][0]:
- if char == "@":
- variableHandicap = True
- if variableHandicap == False:
- print(handicapSet2[handicapRNG][0])
- else:
- temp = handicapSet2[handicapRNG][0].split('@')
- tempRNG = random.randint(handicapSet2[handicapRNG][1][0],handicapSet2[handicapRNG][1][1])
- print(temp[0]+str(tempRNG)+temp[1])
- if i == 3:
- handicapRNG = random.randint(0,len(handicapSet3)-1)
- for char in handicapSet3[handicapRNG][0]:
- if char == "@":
- variableHandicap = True
- if variableHandicap == False:
- print(handicapSet3[handicapRNG][0])
- else:
- temp = handicapSet3[handicapRNG][0].split('@')
- tempRNG = random.randint(handicapSet3[handicapRNG][1][0],handicapSet3[handicapRNG][1][1])
- print(temp[0]+str(tempRNG)+temp[1])
- def userInterface():
- print("This is the user interface for Fernado the virtual robot.")
- print("First I recommend reading the notes by typing \"notes\" and",
- "reading the notes",sep='\n')
- print("to generate a new task type \"g\" and Fernado will generate",
- "a new TAS task for SM64DS",sep='\n')
- print("Type \"quit\" to quit")
- print("type \"credits\" for credits")
- while True:
- usrInput = input("> ")
- if usrInput == "notes":
- print(notes)
- elif usrInput == "g":
- print("New TAS task:")
- generateTask()
- elif usrInput == "quit":
- break
- elif usrInput == "credits":
- print("Thanks to VTMagno and SkicoNow who helped in the process of making this",
- "virtual robot",sep='\n')
- else:
- print("Invalid command")
- userInterface()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement