• Updated Displayer

    At the end of this problem you should submit to Laulima:

    • a file named UHusername_updated_displayer.c
    • example:

      • zhaol_updated_displayer.c

    At the end of this problem you should submit to Laulima:

    • a file named UHusername_updated_displayer.c

      example:

      • zhaol_updated_displayer.c
    • Update your displayer program from Lab 07 so it prints out the following:

      +++++++++++++
      {   O   O   }
      {     >     }
      {  /`````\  }
      +++++++++++++

      If you find yourself doing a lot of copy and pasting or if making this change took a lot of mind less updates to the code (imagine if the picture was 100 lines tall), then that is an indication that your code could be improved

      Of course, without knowing how this image was going to be used by a program will make it hard to know how to "improve" the code to draw the image

  • Display

    Download the display program and make sure you can compile and run display.c runs

    You can download the display program with any of the following methods:

      Using GIT (recommended):
    • cd into your lab folder
    • issue these command at the command prompt:
      • git clone https://github.com/zhaol/game_scaffold.git
      • cd game_scaffold
      • git checkout tags/v1.0.2
      Manually copying and pasting the files:
    • all the necessary files are listed here: https://github.com/zhaol/game_scaffold/tree/v1.0.2
    • when copying and pasting the file content, be sure you are copying and pasting the contents of the files for version 1.0.2 (you should see "tag: v1.0.2" in the top left area)

    No matter which method you choose, be sure the version.txt file says:

    0.2 07: isplay size and border
  • Update Display

    At the end of this problem you should submit to Laulima (please zip these files to work around the 5 file limit):

    • a file named UHusername_display.c
    • a file named UHusername_display.h
    • a file named UHusername_display_constants.h
    • a file named UHusername_display_helpers.c
    • a file named UHusername_display_helpers.h
    • a file named UHusername_display_setup.h

      example:

      • zhaol_display.c
      • zhaol_display.h
      • zhaol_display_constants.h
      • zhaol_display_helpers.c
      • zhaol_display_helpers.h
      • zhaol_display_setup.h
    • Update the display program

      Understand how the display program works (this might take a fair amount of time) and make the following modifications:

      • change the top border and bottom border to be +
      • change the left border to be {
      • change the right border to be }
      • change the frowney eyes to be O

      Notice that the left and right borders were not separated and the change was not as easy. However, having refactored and abstracted other parts of the code, this change was not as bad as it could have been. The take away is: you don't need to refactor all of your code for refactoring to be useful.

      Some of our future labs will be building off of the display program, so please familiarize yourself with the code base

      Please note that the labs after this one will be substantially more difficult

      If you happen to finish this lab early, please consider starting on the next labs early

      Feel free to reuse any of the code in the display program for other future lab assignments