Warning: Some combinations require heavy computation and may crash the page, even on high-end laptops
No Values found
No Position Cards
No Values found
No result found
async function get_best_move() {
try {
const params = new URLSearchParams({
number_of_decks: 6,
dealer_up_card_value: "10",
position_card_values_so_far: ["5", "6"].join(","),
card_values_seen_so_far: ["10", "5", "6", "2", "3", "4"].join(","),
is_surrender_allowed: "true",
blackjack_win_multiplier: "1.5",
hit_card_simulation_limit_to_save_compute: "3",
})
const res = await fetch(`https://www.crushblackjack.com/api/move-expected-value?${params.toString()}`)
if (!res.ok) {
throw new Error(`http error ${res.status}`)
}
const res_body = await res.json()
console.log("expected value result:", res_body)
return res_body
} catch (err) {
console.error("fetch error:", err)
return null
}
} {
bust: null,
blackjack: null,
stand: {
ev: -0.5806544619024554,
outcomes: {
"0": 0,
"1": 0.20967276904877227,
"-1": 0.7903272309512277,
},
},
hit: {
ev: 0.032002488946088425,
outcomes: {
"0": 0.08829462548363258,
"1": 0.4734932759935231,
"-1": 0.44149078704743466,
},
},
split: null,
double: {
ev: 0.06400497789217685,
outcomes: {
"0": 0.08829462548363258,
"2": 0.4734932759935231,
"-2": 0.44149078704743466,
},
},
surrender: {
ev: -0.5,
outcomes: {
"-.5": 1,
},
},
best_choice: "double",
}Sign up or sign in to get access