Example #1
0
        public static string Draw(this Day22RegionType type)
        {
            switch (type)
            {
            case Day22RegionType.Rocky:
                return(".");

            case Day22RegionType.Wet:
                return("=");

            case Day22RegionType.Narrow:
                return("|");
            }

            throw new Exception();
        }
Example #2
0
        public static Day22Equipment GetPossibleEquipments(this Day22RegionType type)
        {
            switch (type)
            {
            case Day22RegionType.Rocky:
                return(Day22Equipment.ClimbingGear | Day22Equipment.Torch);

            case Day22RegionType.Wet:
                return(Day22Equipment.ClimbingGear | Day22Equipment.Nothing);

            case Day22RegionType.Narrow:
                return(Day22Equipment.Nothing | Day22Equipment.Torch);
            }

            throw new Exception();
        }