Giter Site home page Giter Site logo

rheehot / battleship Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 933 KB

collaborative battleship project, object-oriented programming

Home Page: https://shjang7.github.io/battleship/dist/index.html

License: MIT License

CSS 20.75% JavaScript 79.25%

battleship's Introduction

Welcome to Battleship ๐Ÿ‘‹

Battleship is a game app; it has two players those are computer vs human.

  • When the game starts, the computer and human have each board with hidden located ships.
  • The human player tries attacking one each time, miss-attack hits water which has water-colour.
  • And human attacks the located ship, the hit ship has a red colour, and sunk ship changes dark-grey colour.
  • If one of the players attacks all the ships, the player wins the game.

Ships

  • Aircraft carrier(5)
  • Battleship(4)
  • Cruiser(3)
  • Submarine(3)
  • Destroyer(2)

The main requirement is here.

Technologies

  • Javascript: ECMAScript 2015 (es6)
  • Jest test
  • HTML 5
  • CSS 3

Deployment

โœจ Live Demo

Getting started

Clone the repository to your local machine

$ git clone https://github.com/shjang7/battleship.git

Change directory into the directory

$ cd battleship

Install npm

$ npm install

Test check no errors. When it passes, move on.

$ npm test

Build codes

$ npm run build

Open server

$ npm run server

Go to execution file directory in your browser

./dist/

Read the game rule at first screen; the game rule will decrease the size after some moment.

Contributors

๐Ÿ‘ค Suhyeon Jang

๐Ÿ‘ค Grace Mugoiri

๐Ÿค Contributing

  1. Fork it (https://github.com/shjang7/battleship/fork)
  2. Create your feature branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -am 'what this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen-name])
  5. Create a new Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details

battleship's People

Contributors

grace-mugoiri 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.