A downloadable game for Windows

Players = int(input("How many Players are There: "))

if Players > 4:
while Players > 4:
print("A number below 5")
Players = int(input("How many Players are There: "))

Startingmoney = int(input("What is your starting Money: "))

MoneyforP3 = 0

MoneyforP4 = 0

if Players == 4:
MoneyforP1 = Startingmoney
MoneyforP2 = Startingmoney
MoneyforP3 = Startingmoney
MoneyforP4 = Startingmoney

if Players == 3:
MoneyforP1 = Startingmoney
MoneyforP2 = Startingmoney
MoneyforP3 = Startingmoney

if Players == 2:
MoneyforP1 = Startingmoney
MoneyforP2 = Startingmoney

playing = True

if Players < 2:
print("Why")
print("you can not play monopoly alone")
playing = False

move = 0

Money = []

end = 0

while playing == True:
move += 1
print(f"Move {move}")
print("Player One")
whotogiveorget = input("Who to give Money P1 (B for Bank,2,3,4 for Players, if you want to receave money from bank write 5 or 6 to end and enter to skip): ")
if whotogiveorget == "B":
moneytogive = int(input("How Much Money: "))
MoneyforP1 -= moneytogive
print(f"your new bank account is {MoneyforP1}")
if whotogiveorget == "2":
moneytogive = int(input("How Much Money: "))
MoneyforP1 -= moneytogive
MoneyforP2 += moneytogive
print(f"your new bank account is {MoneyforP1}")
print(f"P2 your new bank account is {MoneyforP2}")
if whotogiveorget == "3" and Players > 2:
moneytogive = int(input("How Much Money: "))
MoneyforP1 -= moneytogive
MoneyforP3 += moneytogive
print(f"your new bank account is {MoneyforP1}")
print(f"P3 your new bank account is {MoneyforP3}")
if whotogiveorget == "4" and Players > 3:
moneytogive = int(input("How Much Money: "))
MoneyforP1 -= moneytogive
MoneyforP4 += moneytogive
print(f"your new bank account is {MoneyforP1}")
print(f"P4 your new bank account is {MoneyforP4}")
if whotogiveorget == "5":
moneytogive = int(input("How Much Money: "))
MoneyforP1 += moneytogive
if whotogiveorget == "6":
playing = False
if playing == True:
print(" ")
print(f"Move {move}")
print("Player Two")
whotogiveorget = input("Who to give Money P2 (B for Bank,1,3,4 for Players, if you want to receave money from bank write 5 or 6 to end and enter to skip): ")
if whotogiveorget == "B":
moneytogive = int(input("How Much Money: "))
MoneyforP2 -= moneytogive
print(f"your new bank account is {MoneyforP2}")
if whotogiveorget == "1":
moneytogive = int(input("How Much Money: "))
MoneyforP2 -= moneytogive
MoneyforP1 += moneytogive
print(f"your new bank account is {MoneyforP2}")
print(f"P1 your new bank account is {MoneyforP1}")
if whotogiveorget == "3" and Players > 2:
moneytogive = int(input("How Much Money: "))
MoneyforP2 -= moneytogive
MoneyforP3 += moneytogive
print(f"your new bank account is {MoneyforP2}")
print(f"P3 your new bank account is {MoneyforP3}")
if whotogiveorget == "4" and Players > 3:
moneytogive = int(input("How Much Money: "))
MoneyforP2 -= moneytogive
MoneyforP4 += moneytogive
print(f"your new bank account is {MoneyforP2}")
print(f"P4 your new bank account is {MoneyforP4}")
if whotogiveorget == "5":
moneytogive = int(input("How Much Money: "))
MoneyforP2 += moneytogive
if whotogiveorget == "6":
playing = False

if playing == True and Players > 2:
print(" ")
print(f"Move {move}")
print("Player Three")
whotogiveorget = input("Who to give Money P3 (B for Bank,1,3,4 for Players, if you want to receave money from bank write 5 or 6 to end and enter to skip): ")
if whotogiveorget == "B":
moneytogive = int(input("How Much Money: "))
MoneyforP3 -= moneytogive
print(f"your new bank account is {MoneyforP3}")
if whotogiveorget == "1":
moneytogive = int(input("How Much Money: "))
MoneyforP3 -= moneytogive
MoneyforP1 += moneytogive
print(f"your new bank account is {MoneyforP3}")
print(f"P1 your new bank account is {MoneyforP1}")
if whotogiveorget == "2":
moneytogive = int(input("How Much Money: "))
MoneyforP3 -= moneytogive
MoneyforP2 += moneytogive
print(f"your new bank account is {MoneyforP3}")
print(f"P3 your new bank account is {MoneyforP2}")
if whotogiveorget == "4" and Players > 3:
moneytogive = int(input("How Much Money: "))
MoneyforP3 -= moneytogive
MoneyforP4 += moneytogive
print(f"your new bank account is {MoneyforP2}")
print(f"P4 your new bank account is {MoneyforP4}")
if whotogiveorget == "5":
moneytogive = int(input("How Much Money: "))
MoneyforP3 += moneytogive
if whotogiveorget == "6":
playing = False

if playing == True and Players > 3:
print(" ")
print(f"Move {move}")
print("Player Four")
whotogiveorget = input("Who to give Money P4 (B for Bank,1,3,4 for Players, if you want to receave money from bank write 5 or 6 to end and enter to skip): ")
if whotogiveorget == "B":
moneytogive = int(input("How Much Money: "))
MoneyforP4 -= moneytogive
print(f"your new bank account is {MoneyforP4}")
if whotogiveorget == "1":
moneytogive = int(input("How Much Money: "))
MoneyforP4 -= moneytogive
MoneyforP1 += moneytogive
print(f"your new bank account is {MoneyforP4}")
print(f"P1 your new bank account is {MoneyforP1}")
if whotogiveorget == "2":
moneytogive = int(input("How Much Money: "))
MoneyforP4 -= moneytogive
MoneyforP2 += moneytogive
print(f"your new bank account is {MoneyforP4}")
print(f"P3 your new bank account is {MoneyforP2}")
if whotogiveorget == "3" and Players > 2:
moneytogive = int(input("How Much Money: "))
MoneyforP4 -= moneytogive
MoneyforP3 += moneytogive
print(f"your new bank account is {MoneyforP4}")
print(f"P4 your new bank account is {MoneyforP3}")
if whotogiveorget == "5":
moneytogive = int(input("How Much Money: "))
MoneyforP4 += moneytogive
if whotogiveorget == "6":
playing = False

print(" ")
if playing == True:
print("Fees time")
if MoneyforP1 < 0:
print("You need to pay the fees P1")
Gothroughs = 0
for i in str(MoneyforP1):
Gothroughs += 1
if Gothroughs > 2:
Money.append(i)
end = 0
for i in Money:
end = end * 10 + int(i)
Money = []
MoneyforP1 -= end
print(f"your new bank account is: {MoneyforP1}")
else:
print("no fees for P1")
print(" ")

if MoneyforP2 < 0:
print("You need to pay the fees P2")
Gothroughs = 0
for i in str(MoneyforP2):
Gothroughs += 1
if Gothroughs > 2:
Money.append(i)
end = 0
for i in Money:
end = end * 10 + int(i)
Money = []
MoneyforP2 -= end
print(f"your new bank account is: {MoneyforP2}")
else:
print("no fees for P2")
print(" ")

if MoneyforP3 < 0 and Players > 2:
print("You need to pay the fees P3")
Gothroughs = 0
for i in str(MoneyforP3):
Gothroughs += 1
if Gothroughs > 2:
Money.append(i)
end = 0
for i in Money:
end = end * 10 + int(i)
Money = []
MoneyforP3 -= end
print(f"your new bank account is: {MoneyforP3}")
print(" ")
elif Players > 2:
print("no fees for P3")
print(" ")

if MoneyforP4 < 0 and Players > 3:
print("You need to pay the fees P4")
Gothroughs = 0
for i in str(MoneyforP4):
Gothroughs += 1
if Gothroughs > 2:
Money.append(i)
end = 0
for i in Money:
end = end * 10 + int(i)
Money = []
MoneyforP4 -= end
print(f"your new bank account is: {MoneyforP4}")
print(" ")
elif Players > 3:
print("no fees for P4")
print(" ")

print("End results: ")

print(f"P1 has {MoneyforP1}")

print(f"P2 has {MoneyforP2}")

if Players > 2:
print(f"P3 has {MoneyforP3}")

if Players >3:
print(f"P4 has {MoneyforP4}")

Download

Download
reading.zip 14 MB
Download
monopoly.zip 7.8 MB

Leave a comment

Log in with itch.io to leave a comment.