repl.it
@hoop4life/

The Dark Dark Forest

Python

You are lost in the woods. Find your way to civilization!

fork
loading
Files
  • main.py
  • Blank.py
  • Decisions.py
  • Utils.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
from time import sleep 
from Decisions import *

PrintIntro()

Compassion = 50
Bravery = 50
Hunger = 50
Power = 50
Win = 'Win'
HasDog = False
Potions = 0

Decisions = [Decision1,Decision2,Decision3,Decision4,Decision5,Decision6,Decision7,Decision8,Decision9,Decision10,Decision11,Decision12,]

for i in range(35):
  print('Compassion:',Compassion,'. Bravery:',Bravery,'. Hunger:',Hunger, '. Power:',Power)
  Decision = Decisions[random.randint(0,len(Decisions)-1)]
  Bravery, Compassion, HasDog, Hunger, Power, Potions  = Decision(Bravery, Compassion, HasDog, Hunger, Power, Potions )
  print('Press ENTER to continue.')                       
  input('>>>  ')
  clear()
#Bad Endings.

  if Compassion >= 100:
    FailCompassionHigh()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Compassion <= 0:
    FailCompassionLow()
    print()
    print()
    print()
    print()
    sleep(4)
    clear()
    Win = False
    break
  elif Power >= 100:
    FailPowerHigh()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Power <= 0:
    FailPowerLow()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Hunger >= 100:
    FailHungerHigh()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Hunger <= 0:
    FailHungerLow()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Bravery >= 100:
    FailBraveryHigh()
    print()
    print()
    print()
    print()
    clear()
    Win = False
    break
  elif Bravery <= 0:
    FailBraveryLow()
    clear()
    Win = False
    break
sleep(3)
if Win == False:
  print(colored('-------------------------','red'))
  print(colored('========GAME-OVER========','red'))
  print(colored('-------------------------','red'))
  sleep(2)
  print(colored("Game by DJStudios","green"))
else:
  cprint('You found your way to civilization!!','green')
  print(colored('-------------------------','green'))
  print(colored('========GAME-OVER========','green'))
  print(colored('-------------------------','green'))
  sleep(2)
  print(colored("Game by DJStudios","green"))  
?