So i'll have to make a whole new file jsut for storing the actually game?
Dayum time to google how to do that
Type: Posts; User: xTonyLeo
So i'll have to make a whole new file jsut for storing the actually game?
Dayum time to google how to do that
Store the room as in which files to place it in?
Or would drawing the room come first?
I've been assigned to program rogue using the ncurses library, which wil need
1. File I/O
2. String parsing
3. User input (h,j,k,l)
4. Room drawing
And i have no idea where to start.
Can...
I used a switch statement and for every case it would move approptiately for example case KEY_UP: and it would move the coordinate up.
Also how would i access the arrow within the game without a if...
So after i made the 2d array would i use if statements to change the array values as the person enters a number?
i drew the board with mvaddch function for example mvaddch (i,0, '|'); but 3 different times.
So are you saying to use the 3x3 array all empty like "char board[3][3];"?
i also drew my x and o with...
I've made a tictactoe game using ncurses functions such as mvaddch to put x and o on my board. I need to somehow find the locations of the x's and o's so that i can win my game, and i have no idea...