Please enable JavaScript to use CodeHS

Introduction to Game Design with p5play

Description

In this lesson, students will learn about the aspects of computational thinking that will help them be successful problem solvers.

Objective

Students will be able to:

  • Explain what computational thinking is.
  • Describe problem decomposition and use it to break down larger tasks into smaller ones.
  • Describe what an algorithm is and be able to write one for a process in their life.
Description

In this lesson, students will learn about JavaScript, how to print messages to the console, and about debugging programs.

Objective

Students will be able to:

  • Write a JavaScript program by typing commands with proper syntax in the main function
  • Write a program that prints out a message to the user
Description

In this lesson, students learn how to assign values to variables, manipulate those variable values, and use them in program statements. This is the introductory lesson into how data can be stored in variables.

Objective

Students will be able to:

  • Explain what variables are and what they are used for
  • Create their own variables
  • Print out the values stored in variables
Description

In this lesson, students learn how they can allow users to input information into their programs, and use that input accordingly.

Objective

Students will be able to:

  • Create programs that ask the user for input
  • Store user input in variables and print it back to the user
  • Choose the proper input function to use depending on the type of information needed
Description

In this lesson, students learn about the different mathematical operators they can use to perform mathematical computations and create useful programs that compute information for the user.

Objective

Students will be able to:

  • Describe the different mathematical operators we can use in programs
  • Create programs that use basic math to compute useful things
  • Create programs that take in user input, do simple computations with the input, and produce useful output
Description

In this lesson, students will learn how to create basic functions using JavaScript and use them to improve the organization, readability, and flow of their programs.

Objective

Students will be able to:

  • Define JavaScript functions
  • Call JavaScript functions within the main function
  • Use functions in order to manage the flow of their programs
  • Increase the readability and organization of their code using functions