Hacker News new | ask | show | jobs
by NICETOSEEYOO 1740 days ago
good job on that one. Maybe some visual improvements would be helpful? St. like: selecting the cards from a stack of cards and disabling the already chosen one (maybe with https://deckofcardsapi.com/)

btw: how are u running the simulations?

1 comments

Thank you! The api looks really useful, and I'll see if I can add it in. The simulations are basically random draws from a deck of cards assuming that the cards inputted have already been drawn. I then just count the wins from the random draws to figure out the probability of winning.