Share your repls and programming experiences

← Back to all posts
Game of Za simulator
RYAN_WONG_WERN_ (8)

This is a schoolkids' game where i come from. Enjoy the fun of a time past your consciousness when you could not worry about stuff. With crosskill, strictly 2 player, no hide, no tiger, classic old vanilla za.

Commentshotnewtop
Joshua18 (30)

Hey Hi Ryan, you could use a loop to finish your game and make it more efficient.

ash15khng (691)

Why is 0.7 a dead hand?

RYAN_WONG_WERN_ (8)

@ash15khng look at the algorithm it uses modulo differences of 1 to determine win or lose. A dead hand should not have a modulo difference of 1 with anything thus i have to make it a decimal. The dead number for player is 0.3 and the dead number for computer is 0.7, to avoid dead hands from killing each other.