@CHRISTOPHERTIPP/

Program1882739118273910299x

Python

No description

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
26
27
28
29
30
31
32
import os
food1=5
wood1=5
gold1=5
food2=5
wood2=5
gold2=5


while True:
  print("Player 1: \nfood:",food1,"  Wood:",wood1,"  Gold:",gold1)
  print("Player 2: \nfood:",food2,"  Wood:",wood2,"  Gold:",gold2)
  turn=(int(input("What are you going to do?\n1:Wood for the first person\n2:Food for the first person\n3:Gold for the first person\n4:Wood for the second person\n5:Food for the second person\n6:Gold for the second person\n|")))
  amount=(int(input("How much")))
  if turn==1:
    wood1+=amount
  if turn==2:
    food1+=amount
  if turn==3:
    gold1+=amount
  if turn==4:
    wood2+=amount
  if turn==5:
    food2+=amount
  if turn==6:
    gold2+=amount
  print("Player 1: food:",food1,"Wood:",wood1,"Gold:",gold1)
  print("Player 2: food:",food2,"Wood:",wood2,"Gold:",gold2)
  input("\n\n\nPress enter to continue...")

  os.system("clear")