Drawing the playing field like checkers in Android

I want to create a playing field, such as Checkers (but with the ability to have different tiles for cards.

Now, OO logic and reason tell me that I have to have a class 'tile' that I can draw, and draw x on y by the number of them on one canvas.

My question is the best way to make such advice? Is it wise to do it as I mentioned above and overestimate the changes? Is it better to have the image as a background and β€œmimic” the board by clicking where the tile will be?

Thanks!

+4
source share
1 answer

I think you might find it useful to check the snake game code for Android. It has a very direct way to use tiles to create a play area.

+3
source

All Articles