Structure
Last updated
Last updated
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.
Games folder holds Multiplayer and Singleplayer subfolders.
Multiplayer folder contains fresh game.md 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.
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).
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.
Don't change the contents of .gitignore file!