jeudi 7 janvier 2021

if "k" or "q" or "j" in list[0] and list[1]: [duplicate]

I have been making this card memorising game for my school assignment, and this keeps coming out wrong. the code is

if "K" or "Q" or "J" or "10" in (DECK1[int(x1)][int(sthlh)],DECK1[int(x2)][int(sthlh2)]):
    
    points[current_p-1]+=10
    
    print("congrats !", names[current_p-1], "+10 points. you have",int(points[current_p-1]), "points.")

and no matter what cards I open in the game, either they are k and k or k and q it keeps adding points to the points list. What should I do? please help me...

Aucun commentaire:

Enregistrer un commentaire