Problem Set 3: Game of Fifteen

tl;dr

  1. Watch Week 3’s lecture.

  2. Search and sort some numbers.

  3. Implement the Game of Fifteen.

  4. Submit your code.

  5. Submit a form.

Help

For help with Week 3 and Problem Set 3:

  • Attend a walkthrough on Thu 9/22, 4pm – 5:15pm, in SSS 114.

  • Watch Zamyla’s walkthroughs herein.

  • Attend your TA’s section (or another if you have a conflict).

  • Post questions and search answers in CS50 Discuss.

  • Attend office hours.

Reminders

  • Use help50 as needed.

  • Use eprintf as needed.

  • Use debug50 as needed.

Getting Started

Alright, here we go again!

Log into cs50.io and execute

update50

within a terminal window to make sure your workspace is up-to-date.

Next, execute

mkdir ~/workspace/pset3/

at your prompt in order to make a directory called pset3 in your workspace directory.

Now execute

cd ~/workspace/pset3/

and your prompt should resemble the below.

~/workspace/pset3/ $

What to Do

  1. Implement either of:

    • Find, less comfortable

    • Find, more comfortable

  2. Implement Game of Fifteen

How to Submit

Step 1 of 2

  • Update your IDE:

    update50
  • Submit find:

    cd ~/workspace/pset3/find/
    submit50 find
  • Submit fifteen:

    cd ~/workspace/pset3/fifteen/
    submit50 fifteen

Step 2 of 2

This was Problem Set 3.