A friend an I are trying to port an old board game over to a simple console based game as part of C++ practice. We already finished up the player class but we are having difficulties in converting the resources we found to a 2d playable field.
It's and old game in wher you play a maggician who's locked up in a spellfield. And by hitting the right square you can be free again. The game was pretty versatile as you could play it with more players and expend the playfield towards it. The resources provides ut with a generator which exports in the folowing:
(1,6) : SPELL (FAO KQR ILC IVL)
(1,7) : CLUE (R)
where as spell give the player a higher or lower hp, and clue gives a clue to which direction the winsquare is.
the first one are the coordinates
But it needs to be put in a accesible 2d array like so:
0000000
0000000
0000000
0000000
0000000
Although we tried we a stil both to inexperienced to get it working...
So could you please help us?
Firstly, http://www.cplusplus.com/forum/articles/28558/
Now, what is your problem exactly? Are you having problems parsing the generated map? Are you unable to decide in what form to store the data?