Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "ship.cpp"
- using namespace std;
- char map[25][10];
- ship A,B;
- void setup(){
- for(int i=1;i<=27;i++){
- for(int j=1;j<=12;j++){
- if(i==0 || i==27 || j==0 || j==12)
- map[i][j]='*';
- }
- }
- }
- void mapGen(){
- for(int i=0;i<=26;i++){
- for(int j=0;j<=11;j++){
- cout<<map[i][j];
- }
- }
- }
- int main(int argc, char** argv) {
- setup();
- mapGen();
- return 0;
- }
Add Comment
Please, Sign In to add comment