I have created a backgammon game in c++ that is played in console. Now I want to update it to be played online. At the moment both players would be playing from the same computer, so I don’t need to worry about connections and messages.
In my C++ version the board is a 2D array, and i was thinking of representing it with a ‘gridview’ and making the ‘columns’ be ‘buttonfields’ so that when you press them I could check the logic and if valid make the movements.
I have the feeling there has to be better ways of doing this.
any recommendations?
You are probably best off making the graphical part of your game using client-side graphics. I have used Raphael in the past.
And in order to tell the server what is going on on the board use a WebService.
To do this you’ll need to brush up on JavaScript.
Good Luck!