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.

  1. In VS Code, open the command palette and select the “Git Clone” option.
  2. 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
  3. 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, and block.py. The files renderer.py and player.py are part of the game program, but you will not change them or add to them. The files rectangle_test.py and simple_test.py contain code for testing early parts of your program. rectangle_test.py will help you test get_draw_rectangles. simple_test.py contains simple tests for some of the methods (that you will write) that can be auto-tested.

  4. 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 the pygame module (replace python3 with python 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.

Is this the question you were looking for? Place your Order Here