1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
import random
player_one = raw_input ("What is your name Player 1? ")
player_two = raw_input ("What is your name Player 2? ")
start_one = random.randint(1,6)
start_two = random.randint(1,6)
print start_one
print start_two
if start_one > start_two:
start_first = "%s begins!"
print start_first % player_one
elif start_two > start_one:
start_first = "%s begins!"
print start_first % player_two
dice_one = random.randint(1,6)
dice_two = random.randint(1,6)
dice_three = random.randint(1,6)
dice_four = random.randint(1,6)
dice_five = random.randint(1,6)
print dice_one
print dice_two
print dice_three
print dice_four
print dice_five
if dice_one or dice_two or dice_three or dice_four or dice_five == 6:
"You got your ship" |
Partager