nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example 1.1 Minor Suggestion

visualcurrent opened this issue · comments

When you switch to floating point numbers, it might be really nice to add a hint, reminder, or comment to adjust the data types for x and y to match.

As a new coder, this tripped me up because under the mismatched data types, the random walk became a negatively biased walk.

It is still negatively biased.

Moving the book to p5.js so hopefully this won't be necessary since there isn't a distinction between int and float!