@ADoctor/

Monopoly

Python

Original name: BriefAdventurousGigabyte

fork
loading
Files
  • main.py
main.py
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
import random

class Player():
  def __init__(self):
    print("Initialising...")
  
  def getMovement(self):
    print("""
Rolling dice...""")
    dice1 = random.randint(1,6)
    print("""
Dice 1 = """+str(dice1))
    dice2 = random.randint(1,6)
    print("""
Dice 2 = """+str(dice2))
    spacesMoved = dice1+dice2
    print("""
Total = """+str(spacesMoved))

player1 = Player()
player2 = Player()
player1.getMovement()
player2.getMovement()

#Change indents to tabs