3
Answers

UI and logic separation

Eduard G

Eduard G

14y
3.7k
1
Hi,

I want to write a simple game application, for example Chess or Monopoly.
I want to have to separate classes Game and UI.
I wonder what is the best way to communicate  between thees two classes. By events? By saving reference to ui in Game object ?
I want to separate the logic from ui.

any comments are appreciated.
thnx. 

Answers (3)