Blackjack with Clojure - Part 2
This is the second of two posts using Clojure to make a simple blackjack program, in the previous post we made a hand, deck and a way to get the face value of the card. We will build on this to include scoring and the actual game logic. Building on where we finished last time, getting the value of individual cards, we will make a function to get the score of multiple cards. The easiest way to do this is to use our get-value function with map and then reduce to get the combined total: ...