![](https://private-user-images.githubusercontent.com/87281406/280211041-95702994-1a16-456e-91b8-9ac72dc402ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2Mzk5MTcsIm5iZiI6MTcxODYzOTYxNywicGF0aCI6Ii84NzI4MTQwNi8yODAyMTEwNDEtOTU3MDI5OTQtMWExNi00NTZlLTkxYjgtOWFjNzJkYzQwMmVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDE1NTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1NjEzOThkMTQ0YmJmMjFkYjE2N2Q4OGJiYzFhZTY3ZTc4NWMzMGNkZDEyODFmM2FkMTM4MDNhNjIwNGI2NTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FI20-viNXeMSHrptpHKpcJwDjkdNg-pLQMyKsFZumZc)
this is a battle ship game that we used to play in papers way back then, if u miss those times and want to play against an AI for this game then have at the!
- C++
- Brain
-
Install a C++ Compiler:
- Download and install MinGW or another C++ compiler like Visual C++.
- if you cant find any installtion methods for MinGW continue on with this toturial but dont install VScode, only continue with the MinGW installation
-
Open Command Prompt:
- Press
Win + R
, typecmd
, and press Enter.
- Press
-
Navigate to the Code Directory:
- Use the
cd
command to navigate to the directory containing your C++ source code.
- Use the
-
Compile the Code:
- Use the following command to compile your code:
Replace
g++ your_program.cpp -o your_program.exe
your_program
with the name of your source file.
- Use the following command to compile your code:
-
Run the Executable:
- Run the compiled executable:
your_program.exe
- Run the compiled executable:
-
Open Terminal:
- On macOS, find Terminal in Applications > Utilities.
- On Linux, use the terminal emulator of your choice.
-
Navigate to the Code Directory:
- Use the
cd
command to navigate to the directory containing your C++ source code.
- Use the
-
Compile the Code:
- Use the following command to compile your code:
Replace
g++ your_program.cpp -o your_program
your_program
with the desired name for the executable.
- Use the following command to compile your code:
-
Run the Executable:
- Run the compiled executable:
./your_program
- Run the compiled executable:
- Ensure that you have the C++ compiler installed on your system.
- Make sure your code is in a file with a
.cpp
extension (e.g.,your_program.cpp
). - The
-o
flag in the compilation step specifies the name of the output executable. - These instructions assume basic knowledge of navigating the command line.
For any issues, refer to the documentation for your compiler or system.
MIT License
Copyright (c) 2023 Captain Mirage
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Email - [email protected]
- itch.io - Captain Mirage