repl.it
@anonymous/

guitarquest

Python

Just learning... a work in progress.

fork
loading
Files
  • main.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#guitar quest
#neztok
from termcolor import colored
from os import system, name
import random

global bruh
bruh = 'alive'
piety = 0
record = 0

endings = []

def cprint(text, color):
  print(colored(text, color))

def clear():
  if name == 'nt':
    system('cls')
  else:
    system('clear')

def intro():
  cprint("Welcome to guitarquest.xyz \nA creation on an infinate line.\nA world can be anything you imagine.\nIt's represented by 7 dwellings.\nThe dwellings are numbered 4(1)52637\nThe number 1 is always the starting place of your character. Press enter.",'cyan')
  
def guitargod():
    global endings
    answer = input('Welcome to world Zebulon!\nWould you like to travel to dwelling\n(4), (5), or enter (2)nd room of dwelling 1?\n<--(*--(*)--*--*--*--*--*)--*--*--*--*--*-->')
    if answer == "4":
        clear()
        answer = input('You chose dwelling 4.\nD Lydian.\n<--((*)--*--*--*--*--*--*)--*--*--*--*--*-->\nRoom 1 is empty.\nType yes to continue.').lower().strip()
        if answer == "yes":
            clear()
            answer = input('You chose room 2 of dwelling 4.\nWelcome to E Mixolydian.\n<--((*)--*--*--*--*--*--*)--*--*--*--*--*-->\n<--((*)--*--*--*--*--*--*)--*--*--*--*--*-->\nRoom 2 is empty.\nPortal to E Ionian?\nType yes to continue.').lower().strip()
            if answer == "yes":
                clear()
                answer = input('Welcome to Zebedee aka E Ionian.\n<--*--(*--(*)--*--*--*--*--*)--*--*--*--*-->\nCongratulations! Start over?\nType yes to continue.').lower().strip()
                if answer == "yes":
                    clear()
                    game()
    else: cprint('Joker breaks all your teeth with an ice pick.','cyan')
    if not 'Joker breaks all your teeth with an ice pick.' in endings:
        endings.append('Joker breaks all your teeth with an ice pick.')
    input()
    clear()
    return('dead')
    
def robot():
    global endings
    answer = input('Welcome to world Zebulon!\nWould you like to travel to dwelling\n(4), (5), or enter (2)nd room of dwelling 1?\n<--(*--(*)--*--*--*--*--*)--*--*--*--*--*-->')
    if answer == "5":
        clear()
        answer = input('You chose dwelling 5.\nD Mixolydian.\n<--(*--*--(*)--*--*--*--*)--*--*--*--*--*-->\nRoom 1 is empty.\nType yes to continue.').lower().strip()
        if answer == "yes":
            clear()
            answer = input('You chose room 2 of dwelling 5.\nWelcome to E Aeolian.\n<--(*--*--(*)--*--*--*--*)--*--*--*--*--*-->\n<--(*--*--(*)--*--*--*--*)--*--*--*--*--*-->\nRoom 2 is empty.\nPortal to E Ionian?\nType yes to continue.').lower().strip()
            if answer == "yes":
                clear()
                answer = input('Welcome to Zebedee aka E Ionian.\n<--*--(*--(*)--*--*--*--*--*)--*--*--*--*-->\nCongratulations! Start over?\nType yes to continue.').lower().strip()
                if answer == "yes":
                    clear()
                    game()
    else: cprint('Joker force fed you Guono.','cyan')
    if not 'Joker force fed you Guono.' in endings:
        endings.append('Joker force fed you Guono.')
    input()
    clear()
    return('dead')
    
def punch():
    global endings
    answer = input('Welcome to world Zebulon!\nWould you like to travel to dwelling\n(4), (5), or enter (2)nd room of dwelling 1?\n<--(*--(*)--*--*--*--*--*)--*--*--*--*--*-->')
    if answer == "1":
        clear()
        answer = input('You chose second room of dwelling 1.\nE Dorian.\n<--(*--(*)--*--*--*--*--*)--*--*--*--*--*-->\n<--(*--(*)--*--*--*--*--*)--*--*--*--*--*-->\nRoom 2 is empty.\nPortal to E Ionian?\nType yes to continue.').lower().strip()
        if answer == "yes":
            clear()
            answer = input('Welcome to Zebedee aka E Ionian.\n<--*--(*--(*)--*--*--*--*--*)--*--*--*--*-->\nCongratulations! Start over?\nType yes to continue.').lower().strip()
            if answer == "yes":
                clear()
                game()
    else: cprint('Joker poisoned you with eyedrops.','cyan')
    if not 'Joker poisoned you with eyedrops.' in endings:
        endings.append('Joker poisoned you with eyedrops.')
    input()
    clear()
    return('dead')
    

def event():
  ID = random. randint(1,4)
  if ID == 1:
    return(guitargod())
  if ID == 2:
    return(robot())
  if ID == 3:
    return(punch())
  else:
    cprint('Nothing happened today. Press enter to continue.','cyan')
    input()
    clear()

day = 0

def game():
  global day
  global bruh
  global record
  intro()
  input()
  clear()
  day = 0
  while bruh != 'dead':
    day += 1
    cprint('Day ' + str(day), 'magenta')
    bruh = event()
  if day > record:
    record = day
  cprint('You survived ' + str(day) + ' days.','red')
  cprint('Your record is ' + str(record) + ' days survived.','red')

record = 0
game()

while 1 == 1:
  if day == 1 and not 'Speedracer' in endings:
    endings.append('Speedracer')
  if day >= 50 and not 'Fifty day gang' in endings:
    endings.append('Fifty day gang')
    
  cprint('You have unlocked the following endings:','cyan')
  for item in endings:
    cprint(item,'red')
  cprint('Press enter to replay.','cyan')
  input()
  clear()
  bruh = ''
  pious = 0
  family = random.randint(3,5)
  game()
Fetching token
?