from Hacker News

Black Jack Game

by developer1000 on 4/11/24, 4:18 PM with 4 comments

  • by developer1000 on 4/11/24, 4:18 PM

    Hey HN, I just started learning to code and built a website for a black jack game. The idea is to test different strategies and card counting in a realistic simulation with no money on the line. Most other sites are very cumbersome and slow so I built it with vanilla javascript html css no libraries no backend. State is reset when you reload the page. Start by placing a bet, you start with a monopoly fake money account of 500 $ and see how far you can go. After a period or if the balance goes to 0 you get statistics about win rate, bust rate, etc No money involved no signup no download no ads. Let me know how you find it and what I should improve. Thanks :)
  • by jackspawn on 4/11/24, 4:49 PM

    Nice, I love that it involves no backend and no libraries. Seeing some problems on an iphone 15: after i enter a bet, it zooms in, and i have to manually zoom out again