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 revision Previous revision
tens [2020/04/23 14:15]
frchris
tens [2020/04/23 14:19] (current)
frchris
Line 12: Line 12:
   - 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 Font object and set the Font in java with something like ''​setFont (new Font ("​TimesRoman",​ Font.BOLD | Font.ITALIC,​ 20));''​   - 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 Font 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.   - 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 the ''​remove''​ method of the ''​Tile''​ class. ​ 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. +  - Complete the ''​remove''​ method of the ''​Tens''​ class. ​ 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. 
   - (optional) Design your own version- different numbers and a different total; or make sure the user always win; or you can only click boxes that neighbor each other; etc.   - (optional) Design your own version- different numbers and a different total; or make sure the user always win; or you can only click boxes that neighbor each other; etc.
tens.txt ยท Last modified: 2020/04/23 14:19 by frchris