wlof / gameoflife

A simple Python implementation of Conway's Game of Life using the curses library.
MIT License
3 stars 0 forks source link

Separate the UI layer from the game engine #7

Closed wlof closed 9 years ago

wlof commented 9 years ago

The Game class handles both the game engine (cell and states management, passage of time, etc.) and the UI stuff (drawing & handling keypresses).

This is bad! This goes against the single responsibility principle. Refactor this ASAP!

wlof commented 9 years ago

Done!