Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramonbecker/sea-beattle
Sea battle game design for structure programming discipline
https://github.com/ramonbecker/sea-beattle
Last synced: 3 days ago
JSON representation
Sea battle game design for structure programming discipline
- Host: GitHub
- URL: https://github.com/ramonbecker/sea-beattle
- Owner: RamonBecker
- Created: 2019-04-13T15:28:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T19:38:59.000Z (over 3 years ago)
- Last Synced: 2024-06-26T15:00:43.031Z (6 months ago)
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sea Beattle
> Naval battle game project for the Structured Programming discipline.
## :information_source: InformationThe objective of the game is for the player to sink all of his opponent's ships. The board is formed by 10X10 matrices. Each piece inserted by the user has a size and a location on the board. There are 7 pieces that the user can insert.
- Ship 1: ship size: 5 vertically.
- Ship 2: ship size: 4 horizontally
- Ship 3: ship size: 4 horizontally
- Ship 4: ship size: 4 upright
- Ship 5: ship size: 3 horizontally
- Ship 6: ship size: 3 vertically
- Ship 7: ship size: 3 verticallyIt is also checked if each ship will not be overlapping another ship at the time of insertion into the board, or if the ship will fit, that is, it will not exceed the size of the board.
## 📹 Demo
![batalhaNaval](https://user-images.githubusercontent.com/44611131/114224285-4425fc80-9947-11eb-8adf-1615ca7b8e37.gif)
## ⚠️ Prerequisite
![imagemC](https://user-images.githubusercontent.com/44611131/114224271-41c3a280-9947-11eb-8df7-6c0eeaf7f5aa.png)
## :rocket: Installation
![](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)
```sh
git clone https://github.com/RamonBecker/Sea-Beattle.git
sudo apt update
sudo apt install build-essential
sudo apt-get install manpages-dev
gcc --version
```![](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)
```sh
git clone https://github.com/RamonBecker/Sea-Beattle.git
or install https://desktop.github.com/
install: https://cygwin.com/install.html```
## :zap: Technologies
- C
## :memo: Developed features
- [x] The user can insert his ships on the board
- [x] The user can choose the row and column of his opponent's board
- [x] The players' boards are not exposed to both players, only at the time of insertion that each user will have a view of the ships being inserted on the board
- [x] The user cannot exceed the board at the time of insertion of the ship
- [x] The user must choose a valid row and column at the time of his play on his opponent's board.
- [x] The user's correct moves are counted on his opponent's board## :technologist: Author
By Ramon Becker 👋🏽 Get in touch!
[](https://github.com/RamonBecker) [](https://www.linkedin.com/in/https://www.linkedin.com/in/ramon-becker-da-silva-96b81b141//)
![Gmail Badge](https://img.shields.io/badge/[email protected]?style=flat-square&logo=Gmail&logoColor=white&link=mailto:[email protected])