New answers tagged

1

Here are some suggestions and a version that tries to illustrate most of these points. 1. Separation of concerns There should be some separation between the code that handles (i) the display and (ii) the underlying game logic and representation of the board. People often use design patterns like model-view-controller. A classic way of separating them would ...


0

To get into best practices would require volumes and get you plenty of opinion. At any rate, trying to program too far beyond your understanding is no good so I won't get into particulars. In general, the first thing that occurs to me is that if you're really serious about programming, be good to your future self. Programming starts as a thought process ...


Top 50 recent answers are included