Amazing maze: the challenge

nvm. I haven’t looked at my github account for a long time.

I’ve never used Github and never really had the time to figure out what it does. You think you can tell me what to do?

Github and Git is awesome! You should use it more!

Github (https://github.com/) is based off of Git. (https://git-scm.com/) Git is a source code management (AKA version control system) system. What it does is that it takes snapshots of your code at user-defined points. It also allows you to use branches which allow you to test things without ruining the original code.

Say you were making a game. (Example will be Crossy Roads) You start off with a blank repository, which will hold your code.

You finally make the code which moves your chicken around - great! Now is a great time to commit, which does the snapshotting. Once Git finishes snapshotting your code, you can go back to developing.

Now you make infinite terrain generation, so the chicken can move and go places! Commit again!

Now you work on making obstacles - but you realize there is a problem with your infinite terrain generation code. It doesn’t play well with your obstacles! No good. So you can undo commits (I’m not sure what the official term is but whatever) and Git will delete all your progress back till when you snapshotted the code on infinite terrain generation. Everything will be just like when you committed the infinite terrain generation code.

I also mentioned branches, which are used in testing things out. Say you want to add animations to the chicken. But that will require significant work and it will be hard to undo everything if it doesn’t work. So you create a branch, which is based on the last commit you made. In this branch, you can do whatever you want. If it works, perfect! You can merge the branches, and if the checks pass, (no code conflicts) then you can merge the branch you were just working on to master, which is the name of the default branch, and the main code will have your modifications! If the code doesn’t work, you can just delete the branch, and it will go back to master!

Note that when you are committing, it will snapshot the code and save it in the branch you selected. This will not affect other branches.

That is mostly Git in a nutshell. Github just adds on to Git. (With web browser interface, issue tracking, wikis, more stuff I can’t think of right now…)

I didn’t quite understand it all but since you told me to use it more, I’ll try and figure out my username and password again

1 Like

I’m sorry, did I bombard you with a bunch of information? :sweat_smile: I tend to go overboard on stuff like that…

Basically, on MakeCode Arcade, the Github interface allows you to commit and use branches.

Committing basically copies all you code and backs that up. If you mess up, you can go back to that commit.

Branches are a little more complicated…it took me a while to understand them. Even now, I rarely use them…

ok i get it now.

1 Like

basically from what I understood git hub helps to share projects that are too big to be posted on the forum so if you have the repository link you import it into the make code arcade and play

that’s what i understood i’m not sure about github