A repository for our group assignment 3 for the HIT137 class.
-
Create a virtual environment
python -m venv .venv
-
Activate the virtual environment
-
On Windows:
Set-ExecutionPolicy Unrestricted -Scope Process .\.venv\Scripts\activate
-
On macOS/Linux:
source .venv/bin/activate
Note: If your IDE automatically uses the virtual environment, you may not need to activate it manually. However, if you are using a terminal outside of your IDE, you will need to activate the virtual environment each time you open a new terminal session.
-
Install the required Python packages:
pip install -r requirements.txt
If new pip packages are required for the assignment, please install the package and update the requirements.txt
file using the following command:
pip freeze > requirements.txt
Create a tkinter application using Object Oriented Programming Concepts.
Create a side scrolling 2D game using Pygame.
For this assignment, we will work with git branches.
For Question 1, use branch question1.
For Question 2, use branch question2.
Please refer to these resources for a better understanding of how git branches work:
- https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
- https://youtu.be/QV0kVNvkMxc?si=vQCqGjELxtDHp3O9
To check what branches exist and which branch you are on:
$git branch
main
* question1
To create a new branch for question2:
$git checkout -b question2
Switched to a new branch "question2"
To switch branches:
$git checkout question1
Switched to branch 'question1'