The Trunk: EToys-eem.413.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: EToys-eem.413.mcz

commits-2
Eliot Miranda uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-eem.413.mcz

==================== Summary ====================

Name: EToys-eem.413
Author: eem
Time: 30 October 2020, 2:54:41.532789 pm
UUID: a1c04088-006b-4fcb-b94b-4d208a3e42ff
Ancestors: EToys-mt.412

Fix an Undeclared variable.

=============== Diff against EToys-mt.412 ===============

Item was removed:
- ----- Method: Mines class>>initialize (in category 'parts bin') -----
- initialize
- super initialize.
-      "boardSizes are column, row, mines, highScore"
- BoardSizes := Dictionary new.
- BoardSizes at: 1 put:{8. 8. 10. 999. 'Beginner'}.
-       BoardSizes at: 2 put:{16. 16. 40. 999. 'Intermediate'}.
-       BoardSizes at: 3 put:{30. 16. 99. 999. 'Expert'}.
-
- !

Item was changed:
  ----- Method: Mines>>newGame (in category 'actions') -----
  newGame
        | boardSize |
+       boardSize := MinesBoard boardSizeAt: level.
-       boardSize := BoardSizes at: level.
  timeDisplay value: 0; flash: false.
  timeDisplay stop.
  timeDisplay reset.
  minesDisplay value: (boardSize at: 3).
  hiScoreDisplay value: (boardSize at: 4).
  levelButton label: (boardSize at: 5) asString.
  self board resetBoard: level.!

Item was changed:
  AlignmentMorph subclass: #MinesBoard
  instanceVariableNames: 'protoTile rows columns flashCount tileCount target actionSelector arguments gameStart gameOver boardSize'
+ classVariableNames: 'BoardSizes'
- classVariableNames: ''
  poolDictionaries: ''
  category: 'Etoys-Squeakland-Morphic-Games'!

Item was added:
+ ----- Method: MinesBoard class>>boardSizeAt: (in category 'accessing') -----
+ boardSizeAt: level
+ ^BoardSizes at: level!

Item was added:
+ ----- Method: MinesBoard class>>initialize (in category 'class initialization') -----
+ initialize
+      "boardSizes are column, row, mines, highScore"
+ BoardSizes := Dictionary new.
+ BoardSizes at: 1 put:{8. 8. 10. 999. 'Beginner'}.
+       BoardSizes at: 2 put:{16. 16. 40. 999. 'Intermediate'}.
+       BoardSizes at: 3 put:{30. 16. 99. 999. 'Expert'}!