SquareBracketAssociates / UpdatedPharoByExample

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

Working LightsOut example for Pharo 8 #223

Closed tangentstorm closed 3 years ago

tangentstorm commented 3 years ago

The Matrix classed used in the LightsOut example no longer exists as of Pharo 8 (instead, there's Array2D) and the mouseAction in the SimpleSwitchMorph seems to have been replaced by a more complicated mechanism involving a target, actionSelector, and arguments.

Since I'm a complete beginner, my code probably isn't worth incorporating directly, but maybe it'll save someone a bit of time on the next draft:

PBE-LightsOut.st.txt

tangentstorm commented 3 years ago

I see now that the code here already incorporates Array2D, and the mouseAction was something you implemented and I just overlooked.

https://github.com/SquareBracketAssociates/PharoByExample80/blob/master/Chapters/FirstApplication/FirstApplication.pillar

So, uh... I guess nevermind. :D