Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAndrew Kiernan
26,892 PointsMy first app/game - BlackJack Counter
Hello all!
So I've been working on my first app in my spare time over the last couple weeks, and it is finally at a point where I feel like sharing. It is a very basic blackjack game in html/css/js.
I still have a bit of work to do, mainly make aces 1 or 11 depending on your hand (currently aces are always 11), as well as add a card counting component. I may eventually hook it into a back-end/db as well to add betting/high scores, who knows!
You can try it out at http://apkiernan.github.io/BlackJack_Counter
Let me know what you think!
-Andrew
4 Answers
J Sherwani
248 PointsWow, it looks great! I found a bug where if you click Hit after you've already busted, it still lets you get another card. But other than that it really looks quite awesome. Well done :)
agreatdaytocode
24,757 Points+1 I had fun!
Dylan Grey Aksomitas
Courses Plus Student 15,083 PointsNice buddy, I like it! I had the same issue as J, but I just clicked deal again and it was still enjoyable.
Andrew Kiernan
26,892 PointsThanks J, Aaron and Dylan for checking it out and giving feedback! I fixed the bug you mentioned, and now the hit/stand buttons should hide at the end of each round, as well as when the player breaks or hits blackjack.
Thanks again!