Skip to content
← Back to Community
fruit machine
Profile icon
SamCox2

this is what I have got right now, but this is what I need help on, If the user gets three of a kind for any symbol except the bell or the skull, they get 50p added to their credit.
If the user gets three bells, they get 100 added to their credit.
If the user gets two skulls, they lose 100 of their credit.
If the user gets three skulls, the user loses all their remaining credit.
the credits to go down and up

Voters
Profile icon
SamCox2
Comments
hotnewtop
Profile icon
Coder100

can you invite me?

btw this code is wrong:

if(atp1 == "cherry" or "lemon" or "orange" or "star" ):

change it to:

if atp1 in ("cherry", "lemon", "orange", "star"):
Profile icon
SamCox2
Profile icon
SamCox2

@Coder100 has it worked

Profile icon
SamCox2

@Coder100 its been 24 hours and im just wondering has it worked

Profile icon
SamCox2

@Coder100 could you maybe help with this please its python btw

Profile icon
Coder100
Profile icon
elipie

and dont make two variables with the same name it confuses python

Profile icon
SamCox2

@elipie thank you for all this feedback it helps a lot, can you also maybe do some code for it to demonstrate it for me thanks

Profile icon
elipie

and there is not a variable called atp

Profile icon
SamCox2

@elipie what would it =

Profile icon
elipie

also btw the credit is assigned to the input so you have to make another variable for the "credit"

Profile icon
elipie

Error fix: if(atp == "bell" or atp == "skull"):

Profile icon
SamCox2

Python btw