Need help with calculating board position

comport9

  • Posts: 51
Alright, my board game is 8 x 8 like checkers. I need to calculate if an opponents piece is "surrounded" by two of the active players pieces. Either horizontally, vertically, or diagonally.

Thanks.

shotfrost

  • Posts: 221
You can check for an area around that actor,using either calculate distance or region.Using a number attribute to count the number of chess piece around you.