Join Nostr
2026-04-03 21:04:46 UTC
in reply to

El Duvelle on Nostr: nprofile1q…e2rlj hmm, this use of functions as variables is very strange to me, but ...


hmm,
this use of functions as variables is very strange to me, but if you say that the first part works then that's great.

I think one of the problems could be that you use '==' here

if player_card == aces and computer_card == aces:

when you should probably use 'in' instead (aces is a list, not a single card)

however because the things that are inside 'aces' are actually functions, I'm not sure that this will work.. I guess I'd have coded this all using strings instead?

let me know if this helps? if not could you print the contents of 'player_card' and 'aces'?