Giter VIP home page Giter VIP logo

battleship_console_game's Introduction

Battleship_console_game

You must write the game as a console application in the language requested. Comment your code and add Javadoc comments as necessary. If you are familiar with unit testing you should write unit tests.

You are expected to make your code elegant / beautiful and the best you can do. It’s not sufficient that it works please also ensure good separation of logic. The Problem Implement a very simple game of battle ships.

You should create a simple console application to allow two human players to play with each other.

The program should create a 10x10 grid, and place a number of ships on the grid at random with the following sizes: • 1 x Battleship (5 squares) • 2 x Destroyers (4 squares) Ships can touch but they must not overlap.

The console application should accept input from the user in the format “A5” to signify a square to target, and feedback to the user whether the shot was success, and additionally report on the sinking of any vessels. . = no shot

  • = miss X = hit

battleship_console_game's People

Contributors

mrlyolyov avatar

Watchers

 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.