SquareBracketAssociates / UpdatedPharoByExample

A version of Pharo by Example for Pharo 50.
Other
257 stars 41 forks source link

Mistake in first application example. #187

Closed TheSecretSquad closed 7 years ago

TheSecretSquad commented 7 years ago

There is a mistake in the Lights Out game example in the following location:

Chapter 3.9 - A first application - Let's try our code

This turns out to be behavior that we inherit from SimpleSwitch- Morph. We can fix this simply by overriding mouseMove: to do nothing: LOGame >> mouseMove: anEvent

In the above quote, LOGame >> mouseMove: anEvent, should be LOCell >> mouseMove: anEvent, as LOCell inherits from SimpleSwitchMorph.

nicolaihess commented 7 years ago

Thank you, I will fix it.

TheSecretSquad commented 7 years ago

@nicolaihess You're welcome. Thank you!