Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blueiPhone

macrumors newbie
Original poster
Mar 2, 2015
1
0
board.png


before I start explain my problem let me explain the board
1- the big red square is the board game
2- the small pink squares are the pieces for player 2 to move them to any point (1-6)

2- the small orange squares are the pieces for player 1 to move them to any point (1-6)

each player take turn to either place a piece or move piece
if orange is at point 4 and pink try to place it piece at 4 then it will return to it previous positions

if orange is at point 4 and try to move to point 6 then it will return to it previous positions witch is 4 because piece cannot skip point only move to it next point

if orange is at point 4 and decide to move then they can only move to point 5 but if orange is at point 5 then they can move to point 4 or 6

if orange is at point 3 and decide to move then they can only move to point 5 but if orange is at point 5 then they can move to point 1 or 2

if all pieces for orange is in one line 3,5,6 or 1,2,3 then player 1 win or get point
if all pieces for pink is in one line 3,5,6 or 1,2,3 then player 2 win or get point


I don't know how to do the drag thing in xcode sprietkit(objective-c) so how can I do the drag with these rules

thank you,
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.