Lab 2: Scrabble
Labs are practice problems which, time permitting, may be started or completed in your lab, and are assessed on correctness only. You are encouraged to collaborate with classmates on this lab, though each member in a group collaborating is expected to contribute equally to the lab.
Determine which of two Scrabble words is worth more.
$ ./scrabble
Player 1: COMPUTER
Player 2: science
Player 1 wins!
Getting Started
Open VS Code.
Start by clicking inside your terminal window, then execute cd
by itself. You should find that its “prompt” resembles the below.
$
Click inside of that terminal window and then execute
wget https://cdn.cs50.net/2022/fall/labs/2/scrabble.zip
followed by Enter in order to download a ZIP called scrabble.zip
in your codespace. Take care not to overlook the space between wget
and the following URL, or any other character for that matter!
Now execute
unzip scrabble.zip
to create a folder called scrabble
. You no longer need the ZIP file, so you can execute
rm scrabble.zip
and respond with “y” followed by Enter at the prompt to remove the ZIP file you downloaded. Finally, right-click on the scrabble
folder and click “Open in CS50 Lab”. You should see the specification for this problem on the left-hand side and its distribution code on the right-hand side.