Some parts of the code can be cleaned-up, make less redundant and improved and updated. This task will cover them.
Description
Details
Status | Assigned | Task | ||
---|---|---|---|---|
Restricted Maniphest Task | ||||
Resolved | amankumargupta | T8504 programmingMaze, code clean-up and refactoring. |
Is it possible to move the level descriptions from js file to a dedicated configuration file placed in a ressource directory (see babymatch), at the moment the level are described within the js file. I think that we need to separate the data level from the logic level. We want to be able to give just the "board definition" files to other programers to create new levels without breaking the logic.
Yes, I'm currently cleaning-up and refactoring the main code base to make it suitable for loops activity, so will do this change along too.
Since the overall final diff is too large to be reviewed at once, (around 750 insertions and deletions), I had made total 3-4 individual diffs(1 diff after each significant clean-up and refactoring).
This will be a series of differentials and there are many things in one diff which is further refactored, cleaned up or completely changed in the next diffs. Iin those cases, I'll leave comments there that it is further improved in the later diffs.