User Tools

Site Tools


tens

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tens [2019/04/03 12:56] frchristens [2019/04/03 13:37] frchris
Line 6: Line 6:
  
   - In the ''Tens'' class, complete the ''resetTiles()'' method so it constructs new ''Tile'' objects and placed it in the ''tiles'' ''ArrayList''   - In the ''Tens'' class, complete the ''resetTiles()'' method so it constructs new ''Tile'' objects and placed it in the ''tiles'' ''ArrayList''
-  - Complete subclass of Light called Tile. It needs a new instance variable called ''digit'' that has a number from 1 to 9.  You need to write accessor methods, and a new ''draw'' method that calls the super class's draw method, and draws the digit in the Tile.+  - Complete subclass of Light called Tile. It needs a new instance variable called ''digit'' that has a number from 1 to 9.  You can make a Fony object and set the Font in java with something like ''setFont (new Font ("TimesRoman", Font.BOLD | Font.ITALIC, 20));'' 
 +  - You need to write accessor methods, and a new ''draw'' method that calls the super class's draw method, and draws the digit in the Tile.
   - Now we need to update the ''Tens'' method ''mouseReleased'' so that when a tile is clicked it is turned on or off   - Now we need to update the ''Tens'' method ''mouseReleased'' so that when a tile is clicked it is turned on or off
   - Now we need to have to see if there are two selected, that if the tiles add up to 10, they are removed, and if they do not, ''message'' will have a error message and all the tiles are tuned off.    - Now we need to have to see if there are two selected, that if the tiles add up to 10, they are removed, and if they do not, ''message'' will have a error message and all the tiles are tuned off. 
tens.txt · Last modified: 2020/04/23 14:19 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki