From 1b4e4b5f08e665de685bbfde891b1993521f3809 Mon Sep 17 00:00:00 2001 From: Jeremy Saklad Date: Sun, 13 Jun 2021 12:49:36 -0500 Subject: [PATCH] Add Penny to Cost enumeration For the sake of clarity, members of Cost now have terminal values iff they are assigned an arbitrary cost rather than an actual method of acquisition. The primary effect of this change is that items that are purchased from a shop are given a value in terms of the currency used, rather than a numeric literal. This makes it much easier to tell where refinements to the model may be necessary. --- Bone Market Solver.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Bone Market Solver.py b/Bone Market Solver.py index 2ff9c24..e757e6d 100644 --- a/Bone Market Solver.py +++ b/Bone Market Solver.py @@ -39,10 +39,6 @@ class Cost(enum.Enum): # Bone Fragment BONE_FRAGMENT = 1 - # Bright Brass Skull - # Merrigans Exchange - BRASS_SKULL = 6250 - # Cartographer's Hoard CARTOGRAPHERS_HOARD = 31250 @@ -160,6 +156,13 @@ class Cost(enum.Enum): # Bohemian Sculptress IVORY_FEMUR = ACTION + 750*BONE_FRAGMENT + 3*ORANGE_APPLE + # Penny + PENNY = 1 + + # Bright Brass Skull + # Merrigans Exchange + BRASS_SKULL = 6250*PENNY + # Pentagrammic Skull # Upwards PENTAGRAMMIC_SKULL = 9*ACTION