Code for "Julia used Multiple Dispatch! It was Super Effective!" article.
I decided to write a small package for people to play with. Enjoy!
Usage:
using PokeTypes
import PokeTypes.eff
type MyNewPokeType <: PokéType end
eff(atk::MyNewPokeType, def::Water) = PokeTypes.NOT_VERY_EFFECTIVE
PokeTypes.attack(MyNewPokeType(), Water())
Illustrations in this repository are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License