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({
access_token: "your_access_token",
number_of_decks: 6,
dealer_up_card_value: "10",
position_card_values_so_far: ["5", "6"].join(","),
card_values_seen_so_far: ["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.544965479936707,
outcomes: {
"0": 0,
"1": 0.22751726003164652,
"-1": 0.7724827399683535,
},
},
hit: {
ev: 0.09338848206018746,
outcomes: {
"0": 0.06900667010460912,
"1": 0.5121909059777892,
"-1": 0.4188024239176017,
},
},
split: null,
double: {
ev: 0.18677696412037492,
outcomes: {
"0": 0.06900667010460912,
"2": 0.5121909059777892,
"-2": 0.4188024239176017,
},
},
surrender: {
ev: -0.5,
outcomes: {
"-.5": 1,
},
},
best_choice: "double",
}Sign up or sign in to get access