Tens
This combines Click Boxes Application with the Elevens lab. This game will have the user remove all the tiles by selecting two tiles that add up to 10. To make it harder, the two tiles must be neighbors. Tens Starter Code
Tens
class, complete the resetTiles()
method so it constructs new Tile
objects and placed it in the tiles
ArrayList
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));
draw
method that calls the super class's draw method, and draws the digit in the Tile.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.