Skip to content

Commit

Permalink
cortex prime: expand range to 2-25
Browse files Browse the repository at this point in the history
  • Loading branch information
HighDiceRoller committed Nov 13, 2023
1 parent f040965 commit 1c1024c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/cortex_prime.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h2>Hitches</h2>
var totalChart = new Chart(totalChartContext, {
type: 'line',
data: {
labels: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
labels: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25],
datasets: [
{
label: 'Any effect',
Expand Down Expand Up @@ -437,9 +437,9 @@ <h2>Hitches</h2>
def total_data(die, selected_dist):
if selected_dist == 'pmf':
return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities(range(4, 25))])
return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities(range(2, 26))])
else:
return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities_ge(range(4, 25))])
return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities_ge(range(2, 26))])
`);

totalChart.options.plugins.title = {
Expand Down

0 comments on commit 1c1024c

Please sign in to comment.