I am making a board game and I need to put the player 1 and player 2 pieces on grid of buttons. I am using a image icon to represent the piece which I want to put it on buttons. The problem is that I have a loop of buttons, and I need to put piece1 on buttons 1,3,5,7,9 and piece2 on buttons 2,4,6,8,10.
Share
1 Answer