Skip to content

ilhamhoque/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

blackjack

The rules of the games: ==>

This function lists out all permutations of ace values in the array sum_array.

For example, if you have 2 aces, there are 4 permutations: [[1,1], [1,11], [11,1], [11,11]]

These permutations lead to 3 unique sums: [2, 12, 22] Of these 3, only 2 are <=21 so they are returned: [2, 12]

Convert num_aces, an int to a list of lists For example if num_aces=2, the output should be [[1,11],[1,11]]

I require this format for the get_ace_values function

Call function ace_values to produce list of possible values for aces in hand

About

The blackjack game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages