# @kobalab/majiang-core

> 麻雀基本ライブラリ

Latest version **1.4.1** (published 2026-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @kobalab/majiang-core
pnpm add @kobalab/majiang-core
yarn add @kobalab/majiang-core
bun add @kobalab/majiang-core
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2026-04-12 |
| First published | 2021-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 108.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 78 |
| Author | Satoshi Kobayashi |
| Maintainers | kobalab |
| Keywords | 麻雀, 電脳麻将 |

## Links

- npm: https://www.npmjs.com/package/@kobalab/majiang-core
- Repository: https://github.com/kobalab/majiang-core
- Homepage: https://github.com/kobalab/majiang-core#readme
- Issues: https://github.com/kobalab/majiang-core/issues
- npm.io page: https://npm.io/package/@kobalab/majiang-core

## Recent versions

- 1.4.1 (latest) — 2026-04-12
- 1.3.5 — 2026-03-08
- 1.3.4 — 2025-07-25
- 1.3.3 — 2025-07-11
- 1.3.2 — 2024-12-29
- 1.3.1 — 2024-10-27
- 1.3.0 — 2024-10-18
- 1.2.1 — 2024-02-25
- 1.2.0 — 2024-02-03
- 1.1.2 — 2023-12-25
- 1.1.1 — 2023-12-18
- 1.1.0 — 2023-04-08
- 1.0.2 — 2023-01-21
- 1.0.1 — 2022-12-26
- 1.0.0 — 2022-11-11
- … 32 more at https://npm.io/package/@kobalab/majiang-core/versions

## README

# majiang-core

麻雀基本ライブラリ

手牌の操作、シャンテン数・和了点計算、局進行・卓情報の管理、思考ルーチンの雛形を含む基本クラス群を提供します。

ver.2.0.0 以降の[電脳麻将](https://github.com/kobalab/Majiang)は、その実装に本パッケージを使用しています。

## インストール
```sh
$ npm i @kobalab/majiang-core
```

## 使用法
```javascript
const Majiang = require('@kobalab/majiang-core');
```

## 提供機能
| クラス名            | 機能                                 |
|:--------------------|:-------------------------------------|
| ``Majiang.Shoupai`` | 手牌を表現するクラス                 |
| ``Majiang.Shan``    | 牌山を表現するクラス                 |
| ``Majiang.He``      | 捨て牌を表現するクラス               |
| ``Majiang.Util``    | シャンテン数計算、和了点計算ルーチン |
| ``Majiang.Game``    | 局進行を実現するクラス               |
| ``Majiang.Board``   | 卓情報を更新するクラス               |
| ``Majiang.Player``  | 対局者を実現する基底クラス           |

## API仕様
- [API仕様](https://github.com/kobalab/majiang-core/wiki)

## ライセンス
[MIT](https://github.com/kobalab/majiang-core/blob/master/LICENSE)

## 作者
[Satoshi Kobayashi](https://github.com/kobalab)

---
_Source: https://npm.io/package/@kobalab/majiang-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
