Day 37 - Extending the Magical Universe

less than 1 minute read

Published:

Topics: Extending the Magical Universe with classmethods for Charm, Hex, Curse, etc.

Today I added classmethods to the different Spell subclasses. Speficially, I added one classmethod for each spell type: Charm, Transfiguration, Jinx, Hex, Curse, CounterSpell, HealingSpell such that at least one charm, hex, jinx, … exists in our universe. Tomorrow I will write test code for the entire abstract base class Spell.