Structure

Project Root

Repository consists of a .gitignore file, a README.md file, and two folders, Games and Playground. We won't be talking about README.md for obvious reasons. For those of you that meet with .gitignore for the first time, we will cover that at the end of this chapter.

Project root

Games Folder

Games folder holds Multiplayer and Singleplayer subfolders.

Multiplayer folder contains fresh game.md templates.

Multiplayer games templates

Singleplayer folder is consisted of games subfolders , each with their own level difficulty subfolders. Inside of difficulty folders we can find level.md files.

Levels 1 - 6 on Easy difficulty in Maze

Playground Folder

Think of a Games folder as a board game shelf with all the shiny games on it. Playground is the table on which you will actually play your games (*but instead of putting them back on the shelf after playing, you will just leave them hanging on the table).

Playground folder with records of all played games.

We use .gitignore when we want to tell Git to ignore certain files and/or folders in our project. This will come in handy later when you will be uploading your changes online. For example, in this whole project you won't need any files besides those with .md extension, so I simply ignored any other extension.

This way, if you accidentally add any unnecessary files to the project, Git won't even pay attention to them. I'm (more or less) guaranteed that my project will remain intact from undesired files.

Last updated

Was this helpful?