GoofKing
All your bases are belong to us
I think there's a bug in the Python print function where you have position your double quotes in the right amount of spaces or else it'll give you an error ...
For example, this is the source for an adult-like text adventure/RPG game that I'm creating as I learn python.
So would anyone know why this:
print """
+======================================+
+ On your way to see your girlfriend +
+ You pick up a box of condoms for +
+ the special night you and the love +
+ of your life had planned together, +
+ +
+ seeing how this is your anniversity +
+ today and you were too cheap to +
+ afford her roses, candy or a teddy +
+ bear ... +
+======================================+
"""
input("Press Enter to continue...")
print """
+======================================+
+ But fate is a cruel thing, who's +
+ mean enough to prevent you from +
+ such dirty deeds you were so +
+ looking forword to tonight becau- +
+ es suddenly .... +
+======================================+
"""
Is showing up as all green in nano while the other print functions escape the color to show that it knows what it is needing to print ?
Also the input functions (I think) are giving an error as well ...
Is a bug with the language or is there a typo/mistake I'm not catching ? I've had the weird bug happen before where python complained about double quotes not being in the right spot ...
For example, this is the source for an adult-like text adventure/RPG game that I'm creating as I learn python.
# I just want to get laid is a game about a poor man
# getting trapped in another dimension on his way to
# do his girlfriend.
# You must save the beings from evil invaders before
# going back
#
game_intro = """
+++++++++++++++++++++++++++++++++
= I JUST WANT TO GET LAID!!!! =
+++++++++++++++++++++++++++++++++
"""
print game_intro
# Game intro prints, now get players name
#
playername = raw_input('Enter your name: ')
# Display game's objections
print "Welcome " + playername
# TODO: See about adding a list of commands to print for the player
# Write a cool intro story so that the player knows what's happening
#
# Print out story
print """
+======================================+
+ On your way to see your girlfriend +
+ You pick up a box of condoms for +
+ the special night you and the love +
+ of your life had planned together, +
+ +
+ seeing how this is your anniversity +
+ today and you were too cheap to +
+ afford her roses, candy or a teddy +
+ bear ... +
+======================================+
"""
input("Press Enter to continue...")
print """
+======================================+
+ But fate is a cruel thing, who's +
+ mean enough to prevent you from +
+ such dirty deeds you were so +
+ looking forword to tonight becau- +
+ es suddenly .... +
+======================================+
"""
input("Press Enter to coninue...")
print """
+================================+
+ You get sucked into a wormhole!+
+================================+
"""
So would anyone know why this:
print """
+======================================+
+ On your way to see your girlfriend +
+ You pick up a box of condoms for +
+ the special night you and the love +
+ of your life had planned together, +
+ +
+ seeing how this is your anniversity +
+ today and you were too cheap to +
+ afford her roses, candy or a teddy +
+ bear ... +
+======================================+
"""
input("Press Enter to continue...")
print """
+======================================+
+ But fate is a cruel thing, who's +
+ mean enough to prevent you from +
+ such dirty deeds you were so +
+ looking forword to tonight becau- +
+ es suddenly .... +
+======================================+
"""
Is showing up as all green in nano while the other print functions escape the color to show that it knows what it is needing to print ?
Also the input functions (I think) are giving an error as well ...
Is a bug with the language or is there a typo/mistake I'm not catching ? I've had the weird bug happen before where python complained about double quotes not being in the right spot ...