-
codes for backgammon
hi there,
Please help me with the following question.
I am triying to write a simple javascript game called simple"backgammon"
The problem is that I can not make the pieces move.For example I have
three pieces in slot number-4.What I want is that anytime
I roll a dice and if dice==4 I want the first piece of that slot move
+10 pixel (posTop+10) and if again the dice==4,let the second piece move
+20 and finally if the dice==4 let the third piece move +30
well I tried some codes but anytime ,say the dice==4 all three pieces moves
together.How can name the pieces differently so that they move accordingly.
-
Could you post your entire code, maybe the file ?