Thanks for the compliment. I’m afraid I know of no source, including myself, that shows code for game analysis. It took me years to get my blackjack engine to work perfectly (splits when the dealer had a 10 or ace showing was very tricky). An easier way to get the house edge for blackjack is to write a random simulation. One of these days I would like to write a book on how I analyzed the games, but I’m afraid only you would buy it.