Giter VIP home page Giter VIP logo

abdullahjamal1 / battleshipboardgame Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 2.94 MB

Classic Battleship board game with special island edition and tough AI for your browser.

Home Page: https://chromewebstore.google.com/detail/battleship-game-island-ed/ebkjodkggmaecphknjfepmdibcaddjbh?utm_source=github

License: GNU General Public License v3.0

CSS 0.31% JavaScript 8.32% TypeScript 91.37%
battleship-game battleship probability-density processingjs board-game chrome-extension game p5-js ai javascript

battleshipboardgame's Introduction

BATTLESHIP BOARD GAME - ISLAND EDITION

To download the game from chrome webstore click here.

battleship game battleship game battleship game battleship game

Classic Battleship board game with special island edition and tough AI for your browser.

Engage in strategic warfare as two players arrange their fleets of five ships on custom maps. Take turns guessing and firing upon each other's hidden ships until one emerges victorious by sinking all enemy vessels !

What sets our game apart ?

  • Island Blocks: Place island blocks strategically to challenge your opponents and add an extra layer of excitement.

  • Tough AI: Uses probability density map to reduce average turns to win to 17. Turn on density filter to learn with AI.

  • Light weight: Built with p5.js, game is very minimal in size.

  • Light/Dark theme support

Set sail for victory and download "Battleship Game - Island Edition" today. Command your fleet, rule the waves and emerge as the ultimate naval commander!

Technologies used :- HTML, CSS, Typescript, p5.js


Installation Guide

Option 1: Using the Plugin from the extensions store

  1. Visit the Battleship game extension on the Chrome Web Store

  2. Follow the installation instructions on the page.

Option 2: Compiling it On Your Own

If you want to compile the extension on your own, follow these steps:

Step 1: Clone the Repository

Clone the battleshipBoardGame repository to your local machine:

Chromium

git clone https://github.com/abdullahjamal1/battleshipBoardGame.git

Step 2: Install Dependencies

Navigate to the project directory and install the necessary dependencies:

npm install

Step 3: Code Your Magic

Make the necessary modifications or enhancements to the code.

Step 4: Build the Extension

  • Build the extension by running:
    npm run build

Step 5: Generate a Release (Optional)

Generate a release zip file to be uploaded to the browser/store:

npm run release

Load the extension in Chromium browsers

  • Go to chrome://extensions/.
  • Enable "Developer mode".
  • Click "Load unpacked" and select the project folder.

Features

  • graphical and interactive GUI
  • supports random island generation on sea using DFS with number of island blocks being customizable
  • supports auto-arrange, which arranges all ships randomly on grid
  • supports single-player
  • supports offline multi-player
  • supports game statistics
  • AI uses probability-density model to guess shot
  • supports density filter option to reveal how the AI works internally

battleshipboardgame's People

Contributors

abdullahjamal1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

battleshipboardgame's Issues

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.