Mastering the House Edge: Core Mechanics of Table Games