jdg
Member
1,404 posts
2,110
Seen 10th August 2023
2nd August 2015, 02:58 PM
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Just go to this link to run it V:
https://trinket.io/python/e8631e4fb5?outputOnly=true
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to Rock, Paper, and scissors..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "rock" and playerC != "paper" and playerC != "scissors"):
print('Invalid Choice')
exit()
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "rock"
elif (computerC == 1):
computerC = "paper"
elif (computerC == 2):
computerC = "scissors"
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
if(computerC == "rock" and playerC == "paper"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "rock" and playerC == "scissors"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "paper" and playerC == "rock"):
print('You lost! Bye bye!')
exit()
if(computerC == "paper" and playerC == "scissors"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "scissors" and playerC == "rock"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "scissors" and playerC == "paper"):
print("You sadly lost! You fought well though ")
exit()
import time;
def rps():
print ("Welcome to Rock, Paper, and scissors..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "rock" and playerC != "paper" and playerC != "scissors"):
print('Invalid Choice')
exit()
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "rock"
elif (computerC == 1):
computerC = "paper"
elif (computerC == 2):
computerC = "scissors"
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
if(computerC == "rock" and playerC == "paper"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "rock" and playerC == "scissors"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "paper" and playerC == "rock"):
print('You lost! Bye bye!')
exit()
if(computerC == "paper" and playerC == "scissors"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "scissors" and playerC == "rock"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "scissors" and playerC == "paper"):
print("You sadly lost! You fought well though ")
exit()
- "Behind this mask there is more than just flesh. Beneath this mask there is an idea... and ideas are bulletproof." -V
jdg
Member
1,404 posts
2,110
Seen 10th August 2023
2nd August 2015, 03:02 PM
Allie wrote on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
- "Behind this mask there is more than just flesh. Beneath this mask there is an idea... and ideas are bulletproof." -V
total trash
Master
3,372 posts
3,394
Seen 14th March 2016
2nd August 2015, 03:04 PM
Sr PeTaL wrote on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
jdg
Member
1,404 posts
2,110
Seen 10th August 2023
2nd August 2015, 03:09 PM
Allie wrote on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
- "Behind this mask there is more than just flesh. Beneath this mask there is an idea... and ideas are bulletproof." -V
IM BACK
Member
2,668 posts
1,592
Seen 12th April 2023
2nd August 2015, 04:24 PM
Sr PeTaL wrote on 2nd August 2015 03:09 PM:
Allie said on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
MERRY CHRISTMAS
Member
2,109 posts
1,644
Seen 9th November 2015
2nd August 2015, 04:34 PM
I'm sorry, I do not understand this. Are you and others playing Rock, Paper, Scissors? And what in tarnation is Python?
Train! #train
Thank you! I love it, Allie!
This is beautiful, Foxehhhh!
Another amazing signature from Black and White!
How can I thank you enough, Black and White?
Thanks a lot, Lemmy!
Thank you very much, Lily1117!
Thanks, Carly!
Thank you, Milkshake8!
Thanks so much, Box Head Emoji!
St. Patrick's Day
Best friends
snowtiger, stormwolfX3, Cooper6705, BlueLights, Damen Spike, Kat0427, Lita, Sting, All of the moderators, Chex, Bp28, Saber574, 20royalsktr5, LoveMincraft. If I forgot you please PM me.
Thanks Beckeh!
Be yourself, because nobody's perfect.
http://prntscr.com/5eb57w
Thanks Lita!
<HTML><FONT COLOR="#FF0000">I</FONT><FONT COLOR="#FFff00"> </FONT><FONT COLOR="#00ff00">c</FONT><FONT COLOR="#00ffff">o</FONT><FONT COLOR="#0000ff">n</FONT><FONT COLOR="#FF00ff">s</FONT><FONT COLOR="#FF0000">i</FONT><FONT COLOR="#FFff00">d</FONT><FONT COLOR="#00ff00">e</FONT><FONT COLOR="#00ffff">r</FONT><FONT COLOR="#0000ff"> </FONT><FONT COLOR="#FF00ff">e</FONT><FONT COLOR="#FF0000">v</FONT><FONT COLOR="#FFff00">e</FONT><FONT COLOR="#00ff00">r</FONT><FONT COLOR="#00ffff">y</FONT><FONT COLOR="#0000ff">o</FONT><FONT COLOR="#FF00ff">n</FONT><FONT COLOR="#FF0000">e</FONT><FONT COLOR="#FFff00"> </FONT><FONT COLOR="#00ff00">a</FONT><FONT COLOR="#00ffff">s</FONT><FONT COLOR="#0000ff"> </FONT><FONT COLOR="#FF00ff">a</FONT><FONT COLOR="#FF0000"> </FONT><FONT COLOR="#FFff00">f</FONT><FONT COLOR="#00ff00">r</FONT><FONT COLOR="#00ffff">i</FONT><FONT COLOR="#0000ff">e</FONT><FONT COLOR="#FF00ff">n</FONT><FONT COLOR="#FF0000">d</FONT><FONT COLOR="#FFff00">.</FONT><FONT COLOR="#00ff00"> </FONT></HTML>
IM BACK
Member
2,668 posts
1,592
Seen 12th April 2023
2nd August 2015, 04:39 PM
Amandapink30 wrote on 2nd August 2015 04:34 PM:
I'm sorry, I do not understand this. Are you and others playing Rock, Paper, Scissors? And what in tarnation is Python?
MERRY CHRISTMAS
Member
2,109 posts
1,644
Seen 9th November 2015
2nd August 2015, 04:40 PM
lulu2 wrote on 2nd August 2015 04:39 PM:
Amandapink30 said on 2nd August 2015 04:34 PM:
I'm sorry, I do not understand this. Are you and others playing Rock, Paper, Scissors? And what in tarnation is Python?
Its a programming website used to make things such as what me and sir petall made. and yes, we are.
I'm sorry, I do not understand this. Are you and others playing Rock, Paper, Scissors? And what in tarnation is Python?
Its a programming website used to make things such as what me and sir petall made. and yes, we are.
Train! #train
Thank you! I love it, Allie!
This is beautiful, Foxehhhh!
Another amazing signature from Black and White!
How can I thank you enough, Black and White?
Thanks a lot, Lemmy!
Thank you very much, Lily1117!
Thanks, Carly!
Thank you, Milkshake8!
Thanks so much, Box Head Emoji!
St. Patrick's Day
Best friends
snowtiger, stormwolfX3, Cooper6705, BlueLights, Damen Spike, Kat0427, Lita, Sting, All of the moderators, Chex, Bp28, Saber574, 20royalsktr5, LoveMincraft. If I forgot you please PM me.
Thanks Beckeh!
Be yourself, because nobody's perfect.
http://prntscr.com/5eb57w
Thanks Lita!
<HTML><FONT COLOR="#FF0000">I</FONT><FONT COLOR="#FFff00"> </FONT><FONT COLOR="#00ff00">c</FONT><FONT COLOR="#00ffff">o</FONT><FONT COLOR="#0000ff">n</FONT><FONT COLOR="#FF00ff">s</FONT><FONT COLOR="#FF0000">i</FONT><FONT COLOR="#FFff00">d</FONT><FONT COLOR="#00ff00">e</FONT><FONT COLOR="#00ffff">r</FONT><FONT COLOR="#0000ff"> </FONT><FONT COLOR="#FF00ff">e</FONT><FONT COLOR="#FF0000">v</FONT><FONT COLOR="#FFff00">e</FONT><FONT COLOR="#00ff00">r</FONT><FONT COLOR="#00ffff">y</FONT><FONT COLOR="#0000ff">o</FONT><FONT COLOR="#FF00ff">n</FONT><FONT COLOR="#FF0000">e</FONT><FONT COLOR="#FFff00"> </FONT><FONT COLOR="#00ff00">a</FONT><FONT COLOR="#00ffff">s</FONT><FONT COLOR="#0000ff"> </FONT><FONT COLOR="#FF00ff">a</FONT><FONT COLOR="#FF0000"> </FONT><FONT COLOR="#FFff00">f</FONT><FONT COLOR="#00ff00">r</FONT><FONT COLOR="#00ffff">i</FONT><FONT COLOR="#0000ff">e</FONT><FONT COLOR="#FF00ff">n</FONT><FONT COLOR="#FF0000">d</FONT><FONT COLOR="#FFff00">.</FONT><FONT COLOR="#00ff00"> </FONT></HTML>
jdg
Member
1,404 posts
2,110
Seen 10th August 2023
2nd August 2015, 04:48 PM
lulu2 wrote on 2nd August 2015 04:24 PM:
Sr PeTaL said on 2nd August 2015 03:09 PM:
Allie said on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
i started exploring the site, and i made something: https://trinket.io/blocks/4a8546c658 its not much. but if you can guess what it is, then good for you. and also. it took me 4 tries to win rock paper scissors.
Allie said on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
i started exploring the site, and i made something: https://trinket.io/blocks/4a8546c658 its not much. but if you can guess what it is, then good for you. and also. it took me 4 tries to win rock paper scissors.
- "Behind this mask there is more than just flesh. Beneath this mask there is an idea... and ideas are bulletproof." -V
Member
664 posts
448
Seen 9th October 2015
2nd August 2015, 09:10 PM
Allie wrote on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
Interesting.. but I'm lost too. I'm not that good at coding.
~Rosie
Kamrie/Rosie
Holy Pickles!
Christina Perri is my life
total trash
Master
3,372 posts
3,394
Seen 14th March 2016
2nd August 2015, 09:12 PM
RosieCP wrote on 2nd August 2015 09:10 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
Interesting.. but I'm lost too. I'm not that good at coding.
~Rosie
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
Interesting.. but I'm lost too. I'm not that good at coding.
~Rosie
All the codes are jibberish to me
IM BACK
Member
2,668 posts
1,592
Seen 12th April 2023
2nd August 2015, 09:41 PM
Sr PeTaL wrote on 2nd August 2015 04:48 PM:
lulu2 said on 2nd August 2015 04:24 PM:
Sr PeTaL said on 2nd August 2015 03:09 PM:
Allie said on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
i started exploring the site, and i made something: https://trinket.io/blocks/4a8546c658 its not much. but if you can guess what it is, then good for you. and also. it took me 4 tries to win rock paper scissors.
Cool! And I didn't use that website to make my script, mine was plain scratch coded in my hands c;.
Sr PeTaL said on 2nd August 2015 03:09 PM:
Allie said on 2nd August 2015 03:04 PM:
Sr PeTaL said on 2nd August 2015 03:02 PM:
Allie said on 2nd August 2015 03:01 PM:
Sr PeTaL said on 2nd August 2015 02:58 PM:
Rock Paper Scissors
Ok, this is going to be simple and straight forward, it's a rock, paper scissors script I made for fun in python, you can mess around with this and it's really easy just did it to burn some time.
Here you go:
<iframe src="https://trinket.io/embed/python/e8631e4fb5?outputOnly=true" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
here's the code
Regular Version:
import random;
import time;
def rps():
print ("Welcome to damen, tennis, and petal..\n")
time.sleep(1)
playerC = raw_input("What is your choice? ")
if (playerC != "damen" and playerC != "tennis" and playerC != "petal"):
print('Invalid Choice')
exit()
# rock = damen paper = tennis scissors = petal
else:
pass
computerC = random.randint(0, 2)
if (computerC == 0):
computerC = "damen"
elif (computerC == 1):
computerC = "tennis"
elif (computerC == 2):
computerC = "petal"
# Tie Game
if(computerC == playerC):
print('Tie! Restarting again')
time.sleep(1)
rps()
#Results
if(computerC == "damen" and playerC == "tennis"):
print('You did it! You won, Congratulations!')
exit()
if(computerC == "damen" and playerC == "petal"):
print('You lost! You failed your mission to save your people! Over reacting, sorry!')
exit()
if(computerC == "tennis" and playerC == "damen"):
print('You lost! Bye bye!')
exit()
if(computerC == "tennis" and playerC == "petal"):
print('You won! Congrats, say something to the camera!')
camera = raw_input()
print("Well! " + camera + " to you too!")
time.sleep(5)
exit()
if(computerC == "petal" and playerC == "damen"):
print("You won! Congrats brave knight!")
exit()
if(computerC == "petal" and playerC == "tennis"):
print("You sadly lost! You fought well though ")
exit()
I don't understand any of this, I'm sorry. I am totally lost...
xD, the code part is the script, and the link is just to run the rock paper scissors.
What is even Python? Also are you saying you made a game or..? Sorry for the questions I just am lost.
No problem, python is a programming language, it's pretty well known, and all I did was make rock paper scissors using python since its really easy.
i started exploring the site, and i made something: https://trinket.io/blocks/4a8546c658 its not much. but if you can guess what it is, then good for you. and also. it took me 4 tries to win rock paper scissors.
Cool! And I didn't use that website to make my script, mine was plain scratch coded in my hands c;.
MERRY CHRISTMAS