Search

Saturday, August 11, 2012

Day 3: Changes in board...


While I was thinking how to start with the engine I saw that some changes were needed. For example, I need a Board object for the engine, but at start I don't know the size of the board, so I created an empty constructor and then I assign the board that the game flow uses. A good idea (maybe, I am not sure yet, but let's believe in intuition), was to quit the board initializacion from the parametrized constructor, so I created a method boardInitialization(int). It is now like this:
Another thing that I changes was the main class. The game loop should not be in the main class, the main class only calls a "game loop" class, so now I have gameLoop class. And main now is this:

No comments:

Post a Comment