Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor into model, view controller pattern #84

Open
lyricluo opened this issue Mar 16, 2018 · 2 comments
Open

Refactor into model, view controller pattern #84

lyricluo opened this issue Mar 16, 2018 · 2 comments

Comments

@lyricluo
Copy link

Separate the game logic from display to make the project easier to test.

@Sierrasch
Copy link
Contributor

Right now the game logic and the view are very tightly coupled. For example, on a move command, the player is just redrawn somewhere else. Refactor this so that the player state, etc... are stored as "game state" and drawing this consists of just rendering the board state

@Sierrasch
Copy link
Contributor

W18 OK (350 pts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants