Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <conio.h>
- #include "gameboard.h"
- using namespace std;
- gameboard::gameboard(){}
- void gameboard::draw(){
- for (int i=0; i < ROW; i++){
- for (int j=0; j < COL; j++){
- this->board[i][j] = 176;
- }
- }
- }
- void gameboard::show(){
- cout << endl;
- for (int i=0; i < ROW; i++){
- for (int j=0; j < COL; j++){
- cout << this->board[i][j];
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement