Moving a Character

I would like some help. I am trying to make a simple board game in hope of making a better RPG of some sort; but working my skill level up.

If any of you are familiar with the board game "Nine Men Morris" then you know how I need to make this. For those who are not, Basically there are 25 places to put your pegs. There are 2 players, Player One will go first. Player One pieces are "X" and Player Two are "O".

I have the board all laid out and nice looking for the most part. I have a TON of strings for all the spaces for "Possible Moves". The spots are marked: "AA, AD, AG, BA, and so on....". My int main() {} has the board lay out and all strings. I made a new function called "string PlayerOneMove(string move, string PlayerOne) " and I am trying to get the variable string "AA" into PlayerOneMove() to display "X" onto the board.

So if Player One wish to move onto spot where it says "AA", AA would be change into X. Same thing with Player Two but only for "O" instead.

I thought about case statements but that makes the code VERY lengthy... I also copied the board and made If statements but doing that 50ish times is a big bad thing... Thanks in advance.
Take a look at this post. http://www.cplusplus.com/forum/general/57350/

I put a working moving character on a board there.

Just use 2D arrays for board representation.
Topic archived. No new replies allowed.