cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Need help building a board for a game
Need help building a board for a game
Dec 5, 2014 at 7:16pm UTC
danblognivalodi
(1)
Hello guys, i'm making a battleship game on devc++ i got all working so far as i wanted, but now i need to make the game better and apply a goodlooking board to my game, just like this one:
http://www.mcihanozer.com/wp-content/uploads/fgs.png
my actual code for building player's board is the following:
char player [width][heigth];
for(int i=0; i < heigth; i++)
{
for( int j=0; j < width; j++)
{
player[i][j]='-';
}
}
for example let width and heigth be 8
can you guys help me to improve my board, please :D
btw i'm not using voids, so it is building on the main.
Topic archived. No new replies allowed.