|
-
[RESOLVED] Help make board game
Hi I'm trying to recreate a board game and want to know how to get the pieces to be removed if surrounded on 4 sides.
function onClick(e:MouseEvent):void
{
if (counterBlack == counterWhite)
{
var black:stoneBlack = new stoneBlack();
//other code for sizing positioning etc.
addChild(black);
counterBlack++;
}
else
{
var white:stoneWhite = new stoneWhite();
//other code for sizing positioning etc.
addChild(white);
counterWhite++;
}
}
the stoneWhite and stoneBlack classes are empty classes. the counterBlack and counterWhite determine which person's turn it is
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|