Connecting Tech Pros Worldwide Help | Site Map

help with game-- buttons

Newbie
 
Join Date: May 2009
Posts: 1
#1: May 14 '09
I am an AP computer science student and am in the process of making a modified version of the game Stratego as a project for my class. What I am trying to do is find a good way to place the pieces at the beginning of the game onto the grid. I would like to have the pieces set out to the side of the grid and be able to click once on the piece and then be able to click on any empty grid spot in the grid and have the piece move to that spot and vice versa. Does anyone know of a class that could help me do this?
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: May 16 '09

re: help with game-- buttons


The GridLayout class would be a fine place to start.

kind regards,

Jos
Reply