phetsims / number-pairs

"Number Pairs" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 0 forks source link

Keep organization for the commutative button #23

Open catherinecarter opened 3 weeks ago

catherinecarter commented 3 weeks ago

When in ten-frame organization and a user presses the commutative property button, it would be great (if it's possible) to have the ten-frame organization remain organized if the only action the user has taken is to press the commutative property button.

catherinecarter commented 3 weeks ago

Update: however each side is organized, whether in ten-frame organization or not, when the commutative property button is pressed, mimic and swap left to right addend organization.

For the kittens, all blue kittens will turn yellow and will keep their position. All yellow kittens will turn blue and keep their positions.

marlitas commented 3 days ago

This has been addressed in the above commit. Over to @catherinecarter to review.

catherinecarter commented 3 days ago

Looks amazing! The only thing I noticed is that the structure isn't maintained for the beads. They currently organize as a clump of beads all together when the commutative property button is pressed.

All the other representations look great.