GDQuest / GDQuest/learn-gdscript

Lesson 17. Introduction to For Loops: Explain why we need to subtract 1 to board_size.x

Open
#955 2 comments 0 reactions 0 assignees View on GitHub
content
Dominant language
GDScript
Stars
2.8k
Forks
235
PR merge metrics
No merged PRs in 30d

Description

In the second example of this section's lesson, `board_size.x - 1` is used as a parameter in the `range()` function when it should be `board_size.x` as `void range(length: int)` creates a list of numbers from 0 to length - 1.

This mistake can be seen again in the first practice lesson 'Using a for loop to move to the end of the board'. The user must recreate the mistake shown in this lesson's example to succeed in the practice lesson.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.