daffidwilde / matching

A package for solving matching games
https://daffidwilde.github.io/matching/
MIT License
150 stars 42 forks source link

Make Game a metaclass #94

Closed daffidwilde closed 4 years ago

daffidwilde commented 4 years ago

As is discussed in #90, changing the Game class to a metaclass highlights that it should not be instantiated. In fact, by making it a subclass of abc.ABCMeta and decorating its methods as abc.abstractmethod stops this all together.

Thanks to @igarizio for this suggestion.