私はじゃんけんゲームの簡単なコードを書こうとしていましたが、これは完全なコードですが、行 player = int(raw_input("Choose from 1-3: ")) に EOF エラーが表示されています。手伝ってくれませんか??ありがとうございました
import random
from time import sleep
from random import choice
print "Please select: "
print "1 Rock"
print "2 Paper"
print "3 Scissors"
player = int(raw_input("Choose from 1-3: "))
cpu_choice =random.choice(range(1, 4))
if player == 1:
print "You choose Rock"
if cpu_choice == 2:
print "CPU choosed Paper"
print "You lose!!:("
elif cpu_choice == 1:
print "CPU choosed rock"
print "Oh!! its a draw game"
else :
print "CPU choosed scissors"
print "You win :)"
elif player == 2:
print "You choose Paper"
if cpu_choice == 3:
print "CPU choosed scissors"
print "You lose!!:("
elif cpu_choice == 2:
print "CPU choosed paper"
print "Oh!! its a draw game"
else :
print "CPU choosed rock"
print "You win :)"
elif player == 3:
print "You choose Scissors"
if cpu_choice == 1:
print "CPU choosed rock"
print "You lose!!:("
elif cpu_choice == 3:
print "CPU choosed scissors"
print "Oh!! its a draw game"
else :
print "CPU choosed paper"
print "You win :)"
else :print "Enter the correct choice"