Code Monkey home page Code Monkey logo

sea-beattle's Introduction

Sea Beattle

Naval battle game project for the Structured Programming discipline.

โ„น๏ธ Information

The 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 vertically

It 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

โš ๏ธ Prerequisite

imagemC

๐Ÿš€ Installation

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

git clone https://github.com/RamonBecker/Sea-Beattle.git
or install https://desktop.github.com/ 
install: https://cygwin.com/install.html

โšก Technologies

  • C

๐Ÿ“ Developed features

  • The user can insert his ships on the board
  • The user can choose the row and column of his opponent's board
  • 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
  • The user cannot exceed the board at the time of insertion of the ship
  • The user must choose a valid row and column at the time of his play on his opponent's board.
  • The user's correct moves are counted on his opponent's board

๐Ÿง‘โ€๐Ÿ’ป Author

By Ramon Becker ๐Ÿ‘‹๐Ÿฝ Get in touch!

github linkedin Gmail Badge

sea-beattle's People

Contributors

ramonbecker avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.