Programming Abstraction and Methods
Question Description
Initial Setup
Your partner and group number (the same as for PSA4) can be found on Blackboard, in “PSAs->Group Numbers 3”
Both you and your partner will need to get the starter code for your group using Git.
- In VS Code, open the command palette and select the “Git Clone” option.
- When prompted for the repository URL, enter the following, with X replaced by your group number (e.g. 7 or 12).ssh://git@code.sandiego.edu/comp120-fa19-psa5-groupX
- Choose the “Open Repository” option in the window that pops up in the lower-right corner of the screen. The repository should contain the files
block.py
game.py
goal.py
player.py
rectangle_test.py
renderer.py
simple_test.py
You will be adding code to the files
goal.py
,game.py
, andblock.py
. The filesrenderer.py
andplayer.py
are part of the game program, but you will not change them or add to them. The filesrectangle_test.py
andsimple_test.py
contain code for testing early parts of your program.rectangle_test.py
will help you testget_draw_rectangles
.simple_test.py
contains simple tests for some of the methods (that you will write) that can be auto-tested. - To be able to use the code for this assignment, you will need to install a Python module named
pygame
. To do this, go to the terminal window in VS Code, and type in the following command to install thepygame
module (replacepython3
withpython
on a Windows computer):
python3 -m pip install -U pygame
Remember that VS Code closes your repository when you exit and restart it. Use the “Open Recent” option (in the “File” menu) to reopen it if you can’t find it.
We also recommend that you stage changes, commit those changes, and sync the changes every time you finish one of the functions you write. This ensures that you won’t lose any of your work in case your computer gets lost or a file gets accidentally deleted.
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."