The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.04

  • Fixed what was suspected to be a bug in Quantum::Superpositions, but was indeed a bug in Games::Blackjack, as Damian Conway pointed out: To access eigenstates in nested superpositions, they need to be flattened out. So if $count = any(any(2,12),any(12,22)) then $count <= 21 will return both nested superpositions, any(2,12) and any(12,22), resulting in any(2,12,22) for the superposition's eigenstates. Instead, $count = any(map {eigenstates $_} any(2,12), any(12,22)) will flatten out the eigenstates and have $count <= 21 return any(2,12), as expected.

Modules

Blackjack Utility Classes

Provides

in lib/Games/Blackjack.pm
in lib/Games/Blackjack.pm

Examples