Agreed. Just a 2D array of enum values something like {EMPTY, PLAYER_A_PIECE, PLAYER_B_PIECE} could represent the board state internally and then member functions using the MVC architecture would probably work great.
This would most likely use the least resources and be the most convenient way to trigger interactions between the pieces, since all the information belongs to a single class.
Show differencesHistory of post edits
#1Khatharr
Posted 15 November 2012 - 03:55 PM
Agreed. Just a 2D array of enum values something like {EMPTY, PLAYER_A_PIECE, PLAYER_B_PIECE} using the MVC architecture would probably work great.
This would most likely use the least resources and be the most convenient way to trigger interactions between the pieces, since all the information belongs to a single class.
This would most likely use the least resources and be the most convenient way to trigger interactions between the pieces, since all the information belongs to a single class.