UNPKG

battleship-ai

Version:

This repository contains a Battleship AI implementation built in TypeScript. The AI focuses on grid-based probability calculations, strategic ship placement, and targeted attack mechanisms to effectively play the game. This README explains the AI’s logic,

62 lines 1.46 kB
{ "name": "battleship-ai", "version": "0.0.2", "license": "MIT", "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist/**/*", "CHANGELOG.md", "README.md" ], "exports": { "./package.json": "./package.json", ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "devDependencies": { "@edge-runtime/vm": "^4.0.4", "@types/node": "18", "benny": "^3.7.1", "chalk": "^5.3.0", "inquirer": "^12.1.0", "tsup": "^8.3.5", "vitest": "^2.1.5" }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/Envoy-VC/battleship-ai.git" }, "bugs": { "url": "https://github.com/Envoy-VC/battleship-ai/issues" }, "keywords": [ "battleship", "ai", "game", "heatmap" ], "scripts": { "build": "tsup", "build:watch": "tsup --watch", "clean": "rm -rf dist", "lint": "eslint \"./**/*.ts*\"", "type-check": "tsc --noEmit", "prettier-check": "prettier --check \"./**/*.ts*\"", "test": "pnpm test:node && pnpm test:edge", "test:edge": "vitest --config vitest.edge.config.ts --run", "test:node": "vitest --config vitest.node.config.ts --run", "benchmark": "bun ./benchmarks/suites/index.ts" } }