Please enable JavaScript to use CodeHS

AP Computer Science Principles in Roblox

Data Structures

In this module, students learn about arrays as a way to store data more efficiently in their programs. They learn how to loop through arrays to access elements within an array and how to use folders to organize parts in Roblox Studio.

Lessons

6.1 Intro to Arrays and Accessing an Element in an Array

  • Introduction to Arrays
  • Array of Foraged Items
  • Exploration: What's Behind the Door?
  • NPC Dialogue
  • Magic Tree Exploration
  • +3 more

6.2 Adding and Removing Elements from an Array

  • Adding and Removing from an Array
  • Adding and Removing: Foraging Array
  • Exploration: Pizza Toppings
  • Arrays and Data Abstraction
  • Survival Tools
  • +2 more

6.3 Looping Through Arrays

  • Looping Through Arrays
  • How Old Are You?
  • Exploration: Don't Forget the Milk
  • Debugging: Average Score
  • Arrays as Parameters
  • +4 more

6.4 Finding an Element in an Array

  • Finding an Element in an Array
  • Maximum Value
  • Mutual Friends
  • In a World WITHOUT Arrays!
  • In a World WITH Arrays!
  • +3 more

6.5 Arrays in Roblox: Putting it All Together

  • Collect the Coins Tutorial
  • Completed Collect the Coins Tutorial Code
  • Boss Box
  • Park Clean Up

6.6 Simulation

  • Simulations
  • Gravity Simulation
  • Conway's Game of Life
  • Wolf Sheep Predation Simulation
  • Heads vs. Tails
  • +1 more

6.7 Data Structures Quiz

  • Data Structures Quiz

Courses that include this module