dawalama/Tournament-Director-Foosball — comment on commit 5149578e3c8e825abe89ecfeb6575ce165184a97
File: models.py line 43
By dawalama:

The only variation in event type that affects the bracket should be either single or double elimination. Let's chat about it:)

Dawa
On Nov 12, 2011, at 12:08 PM, jcarrafa wrote:

> I like the idea here. However, I think we're going to end up with so many variations of event types, that we'll have to keep adding properties here and in the implementation we'll have unwieldy trees of logic trying to determine how to draw the bracket.
>
> I think a more scalable approach will be to implement a new class for every event type, which implements the proper logic, and here in the event table we will just keep track of an "event_type" name mapping to the correct subclass. From the event administrator's view, we'll have a repository of event types available.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/dawalama/Tournament-Director-Foosball/commit/5149578e3c8e825abe89ecfeb6575ce165184a97#commitcomment-713178