Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new LessonFourCpTwo(ctx: CanvasRenderingContext2D, editor: Editor): LessonFourCpTwo

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p> Yes! You got this! </p><p> Now let's put those skills in if/else statements to work! </p><p> Create a pair of if/else statements to print out to the CANVAS a claim of whether the circle is positioned ABOVE or BELOW the rectangle. </p><p> CHALLENGE: Print a claim that states whether circle is ABOVE or BELOW the rectangle. </p><p> HINT: Remember that the numbers in the print() statements determine the position of the shapes being printed. </p>`

_latestInstrIndex

_latestInstrIndex: number = 0

_name

_name: string = "l4c2"

Optional _starterCode

_starterCode: string

ctx

ctx: CanvasRenderingContext2D

editor

editor: Editor

Accessors

instructions

  • get instructions(): string

name

  • get name(): string

numInstructions

  • get numInstructions(): number

Methods

checkGoal

  • checkGoal(document: Document, effects: Effect<any>[]): boolean

Optional drawGuides

  • drawGuides(): void

renderInstruction

  • renderInstruction(document: Document): void

renderLatestInstruction

  • renderLatestInstruction(document: Document): void

renderNextInstruction

  • renderNextInstruction(document: Document): void

renderPrevInstruction

  • renderPrevInstruction(document: Document): void

skipInstructions

  • skipInstructions(document: Document): boolean

Generated using TypeDoc