Skip to content

Latest commit

 

History

History
79 lines (41 loc) · 1.99 KB

README.md

File metadata and controls

79 lines (41 loc) · 1.99 KB

Git workshop

The demo uses GitHub Desktop.

Step 1 - Fork the repository

First create your own fork!

Screenshot from 2024-10-03 18-06-55

Next clone the repository!

Step 2 - Create a branch and switch to it

Create your branch

  • put your name in the file README.md

Staging

Committing

Pushing

Step 3 - create a pull request

A.k.a. how to update your main branch the proper way.

First you enter the menu

Screenshot from 2024-10-03 18-23-54

Then you create your pull request!

image

Step 4 - change branch to the prepared merge conflict branch

solve the merge conflict

Step (närsom) - run the program

Installing

Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library

pip3 install pygame

Running the application

run the file just as any other Python script (.py) file.

python3 Snake\ Game.py

The difficulty variable can be changed with the values provided in the comment to set the difficulty level.

Prerequisites

  • Python
  • Pygame, an open source Python library for making multimedia applications