Honeycombs

From Rosetta Code
Revision as of 20:08, 25 May 2011 by rosettacode>Markhobley (single hexagons in a honeycomb arragement)
Honeycombs is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

The task is to produce a matrix of 20 hexigon shaped widgets in a honeycomb arrangement. The matrix should be arranged in such a manner that there are four rows of five honeycombs. Each hexagon should be the same colour, and should display a unique randomly selected single capital letter on the front. The application should now wait for the user to select a hexagon, either by using a pointing device, or by pressing a key that carries a corresponding letter on a hexagon. The selected hexagon should now change colour on the display.