Giter VIP home page Giter VIP logo

haminimi / battleship Goto Github PK

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

Battleship is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player.

Home Page: https://haminimi.github.io/battleship/

JavaScript 75.59% HTML 11.47% CSS 12.93%
battleship battleship-game drag-and-drop draganddrop game game-development javascript javascript-game jest jest-test

battleship's Introduction

Battleship 🚒

Screenshot of the Battleship game.

Description

Battleship is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the objective of the game is to destroy the opposing player's fleet. The project is a part of The Odin Project's curriculum. The Odin Project provides a high quality web development education maintained by an open source community.

If you're interested in achieving a fast victory, try using the cheat function in your developer console:

cheat()

Main Features

  • Drag and Drop: A user can place its ships on the grid using a handy drag-and-drop system.

To Do:

  • Responsive Design
  • Improve Computer Intelligence

Tech

The project is built with:

  • HTML
  • Vanilla JavaScript
  • Vanilla CSS

Tools

  • Visual Studio Code
  • Git
  • Jest

Covered Topics

This section mentions the main topics covered during project work and prior lessons

  • Test Driven Development
  • Unit Testing
  • Jest
  • Drag and Drop

Reflection

The computer opponent at the moment is not particularly powerful, and that's the main thing on a to do list for this project. The intelligence of the computer player should be improved by having it try adjacent slots after getting a β€˜hit’.

Credits

Happy coding!

battleship's People

Contributors

haminimi 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.