# #------------------------------------------------------# # |Name : Geuss The Number | # |Purpose : 11DGT | # |Author: Lincoln | # |Created : | # |Copyright : © Lincoln 28/02/2024 | # #------------------------------------------------------# #Imports import random import time #values geuss = 0 randnumber = 0 #Copy and paste assets: # message = ("Hello") # normal_message(message) #Spacing for easy reading def spacing() : print("") #suspenseful message def suspenseful_message(message, delay=1): spacing() for char in message: print(char, end='', flush=True) time.sleep(delay) def normal_message(message, delay=0.1): spacing() for char in message: print(char, end='', flush=True) time.sleep(delay) #Ask user for a name def intro() : spacing() message = ("Hello") normal_message(message) time.sleep(1) spacing() message = ("Welcome to the Ultimate Geussing game") normal_message(message) time.sleep(1.5) #User wants to read the rules def yrules() : spacing() print("The rules are simple") time.sleep (2) spacing() print("I will chose a number between 1 and 1000") #User does Not want to read the rules def nrules() : spacing() print("Then lets get started") main() #Main script def main() : spacing() #Informing player that they have one more geuss def lasttry() : spacing() print("This is your final geuss") # Example usage: message = "..." suspenseful_message(message) spacing() spacing() spacing() spacing() intro() spacing() message = "What is your name?" normal_message(message) name = input(" ") message = "..." suspenseful_message(message) spacing() message = ("Hello {}" .format(name)) normal_message(message) time.sleep (1) spacing() message = ("Would you like to hear the rules? ") normal_message(message) time.sleep (1) rules = input("(y/n): ") if rules == "y" : yrules() elif rules == "n" : nrules()