O'Reilly logo

Vaadin 7 UI Design By Example Beginner's Guide by Alejandro Duarte

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Boxwords game

In this section we are going to develop a simple board game using the versatile Table component. Boxwords is a simple yet intriguing game, whose aim is to obtain the highest score by placing random letters in a grid. The player starts with an empty grid of twenty-five empty squares (5 x 5). At each turn, the application will show a random letter that the player must place in some empty square trying to form words of two or more letters either, vertically or horizontally. When the grid is full, the application will add up the score using a dictionary. The player will gain one point per letter of each correct word. Here is a screenshot of the finished application:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required