Tuesday, August 14, 2018

FreeRails: Next programming steps

I finished quite some substantial changes under the hood, but I'm far from finished. It left me a bit exhausted mentally. Getting your head to solve complex puzzles in your free time is rewarding but also somewhat tiring. That's why I'm currently looking for some easier tasks as well as some planning tasks before returning to the inner workings.

Possible tasks include
  • Go through all locations in the code marked TODO and work on the easier ones.
  • Make some hard-coded properties of the game model like the economic climates (recession, moderate, boom) or the game rules (can connect to other railroads) serializable and then load their default state from a file when a scenario is loaded
  • Go through the code (especially the moves, the move generators and the handler) and identify code that does game logic and move it to the model.
  • Add to the design document details of the planned client-server interaction.
  • Describe the game model in the design document.
 So, that's what I will do now before starting some major rebuilding like
  • Moving Activities from the world to the Trains where they belong
  • Replacing CompositeMoves with single step comprehensive Moves and removing undo on the moves (we don't undo anymore)
  • Create a Player specific World view, so that the player doesn't always have to specify his Player object (alternatively, store your Player object with your credentials in a context, that then is stored next to the world)
which are all (among others) prerequisites for creating a new and modern looking client.

No comments:

Post a Comment