Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Lesson 23 - Excercise 2: Realign the train tracks" problem to understand task #977

Open
davidak opened this issue Aug 11, 2024 · 0 comments
Labels
content Issues with the lessons, practices, including their code examples

Comments

@davidak
Copy link

davidak commented Aug 11, 2024

Issue description:

From the goals description, i understand the situation as follows:

some train tracks are misaligned. my task is to align the tracks and do that from the end ("with negative indices"). i don't understand why the last part is important. i also don't understand what align() does exactly, because there is no reference

so i align every track, starting with the last one. then every track should be perfectly aligned, right? (no)

Screenshot from 2024-08-11 18 06 21

My Code:

func fix_tracks():
	var tracks_size = tracks.size() - 1
	print(tracks_size)
	for i in range(tracks_size):
		print(i)
		align(tracks[tracks_size - i])

Maybe the part "You have to find them..." is important here. How should i find misaligned tracks? Should i do that by looking at the visualization or create a function?

I did not need the information in the hints. I would need hints that lead me to the solution, or a better description of the goal in the first place.

maybe i'm thinking too complicated.

i have to look at the solution now (ohh)


latest offline course downloaded from itch.io. not sure if that is identical to the last release from github (1.5.2)

@davidak davidak added the content Issues with the lessons, practices, including their code examples label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues with the lessons, practices, including their code examples
Projects
None yet
Development

No branches or pull requests

1 participant