Aug-12-2019, 01:02 AM
(This post was last modified: Aug-12-2019, 01:13 AM by ichabod801.)
#Import the random Module import random # Here are your list of Pirates pirates = [ 'Captain William Kidd', 'Pierre Le Grand', 'Red Leg Grieves', 'Edward Low', 'Calico Jack Rackham', 'Anne Bonny', 'Captain Henry Morgan', 'Black Sam Bellamy', 'Black Bart Roberts', 'Edward Blackbeard Teach'] # PRINT THE CONTENT OF THE PIRATES LIST TO THE SCREEN HERE print '''Your List of Pirates are: ''' for pirates in pirates: print pirates # Attacks List attack = ['Dodge', 'Parry', 'Thrust'] print''' ''' # PRINT THE CONTENTS OF THE ATTACK LIST TO THE SCREEN HERE print '''Your Available Attacks are: ''' for attack in attack: print attack # Choosing the Characters for the fight player = random.choice(pirates) opponent = random.choice(pirates) # ############################################################################# # Change the line below to correctly concatenate PLAYER and OPPONENT with # the variables above so that when the statement prints to screen, the chosen # character names are shown. # ############################################################################# print "Ahoy ye swabs! Prepare for battle!" print "PLAYER has challenged OPPONENT in one on one combat!" # Choosing the attack pattack = random.choice(attack) oattack = random.choice(attack) # CREATE A CORRECTLY CONCATENATED STRING THAT CONTAINS PLAYER, OPPONENT, PATTACK & OATTACK