For the algorithms, refer to the solution submitted by Brian Smith in this location.
blackjack
flooble's webmaster puzzle