import random

deck=range(1,11)*4 # create list of numbers 1 to 10 each represented 4 times
random.shuffle(deck)

pick1=4 # computer's arbitrary pick
PCguess=pick1
t=pick1

pick2=3 # for example
pick2=input('Choose a secret number between 1 and 10 ')
yourSecret=pick2
t2=pick2

print 'Your current secret number is ',pick2
print 'Press Enter to see next card, switching your number where appropriate'
p=0
c=0 # for counting forward
for j in deck:
    p+=1
    c+=1
    #print p,'  card',j
    print '+',c,'  card',j,
    z=raw_input()
    if p==t:
        t+=j
        PCguess=j
        #print 'computer switches to',PCguess
    if p==t2:
        t2+=j
        yourSecret=j
        #print 'you switch to',yourSecret
        c=0
    if p+PCguess>40:
        break
print 'Computer says your present secret number is',PCguess

    
