In today’s lab, we’re going to put your number guessing skills to the test: can you guess the number?

Table of Contents:


🥅 Goals

  1. Learn what JSON is, how it’s represented, and why it’s beneficial
  2. Learn how to interact with JSON through Java using Jackson
  3. Learn what a server and socket are, and how to establish a socket connection in Java
  4. Build a playable implementation of Guess the Number

<aside> 📌 This Lab will be extremely important for upcoming PAs. Please read through and work on this in its entirety, do your best to internalize the material, and seek clarifications with your Lab TAs, on Piazza (general), or in office hours (specific) as needed.

</aside>

🎬 Setup

In PA02, you are tasked with building a data representation for .sr (spaced repetition) files. Our requirements are that:

  1. It must hold questions, answers, and metadata
  2. All answers and metadata must be associated with a specific question
  3. That metadata must indicate whether or not the question is “easy” or “hard”