33.4. Assignments DE.Modules

Submission
You must submit assignments using git
Create Repo
  • Create an empty repo on bitbucket.org, gitlab.com, or github.com,
  • git push your local repo to the above remote repo.
  • For node assignments the line node_modules/must be in your .gitignore file.
Submit
By email to with:
  • The word 'submission <subjectname>' in the subject line
  • The url(s) of your repo(s) in the body

33.4.1. Assignment DE.Mod.1

In this assignment you must, by the use of modules, create a new architecture for your solution to your recent project. For each game think in terms of at least three JavaScript files:

  • A library file with functions that you identify as usable in all three games.
  • A library file with functions relevant to this particular game.
  • A JavaScript file with the executable JavaScript that executes the game in this particular page.

We suggest that you start with restructuring the unaltered solution that you handed in. Hand that in as one branch. Then create another branch and think in terms of improving the solution by compartmentalizing the code to have more functions each of which does less. A function should do one thing, and do it well.

Finally this is also an opportunity to improve your game solutions with things you didn't have time for in the project.

This assignment may be solved in the groups from the original project, or it may be solved individually if you like the challenge, or if you fell out with the group :-|