Please enable JavaScript to use CodeHS

AP Computer Science Principles in Roblox

Description

In this lesson, students will be introduced to arrays and how to use them to create ordered collections of items within their programs.

Objective

Students will be able to:

  • Define an array
  • Access elements of an array with an index
Description

In this lesson, students will learn how to add and remove elements at the end of an array using the insert and remove methods.

Objective

Students will be able to:

  • Add elements at the end of an array using the insert method
  • Remove elements from the end of an array using the remove method
Description

In this lesson, students will learn how to loop through an array to have more functionality with arrays in their programs.

Objective

Students will be able to:

  • Determine the length of an array using the length property
  • Use the length of an array and a for loop to loop through the elements in an array
Description

In this lesson, students will learn how to find specific elements while looping through an array.

Objective

Students will be able to:

  • Use the length of an array and a for loop to loop through the elements in an array
  • Loop over an array to filter or print certain elements based on tested criteria
Description

In this lesson, students will take what they’ve learned about arrays and apply it in Roblox.

Objective

Students will be able to:

  • Use arrays in Roblox programs
  • Loop through folders using the GetChildren() command in Roblox
Description

In this lesson, students learn what simulations are and how they are used. Students will explore simulations such as Conway’s Game of Life and Wolf Sheep Predation.

Objective

Students will be able to:

  • Explain how computers can be used to represent real-world phenomena or outcomes
  • Compare simulations with real-world contexts
Description

In this lesson, students review content with a multiple-choice unit quiz.

Objective

Students will be able to:

  • Prove their knowledge of basic coding concepts through a multiple-choice quiz