npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lapius/cli-othello

v1.0.5

Published

ターミナルで遊ぶオセロ。5 段階の AI と対戦できる(要 Python 3.9+)

Readme

cli-othello

ターミナルでオセロ(リバーシ)を楽しめるCLIパッケージです。 5段階の強さから選べるAIと対局できます。

インストール

npm(推奨)

npm i -g @lapius/cli-othello

othello コマンドが入ります(Node.js 18 以上と Python 3.9 以上が必要)。

pip

pip install cli-othello

Windows では curses を使うために windows-curses が必要です。pip で入れた場合は自動で入ります。npm で入れた場合は py -m pip install windows-curses で入れてください。

使い方

othello

起動すると対局前にAIの強さ(Lv.1〜Lv.5)を選ぶ画面が表示されます。 強さを指定して直接対局を始めることもできます。

othello --level 3

操作方法

| キー | 動作 | | --- | --- | | ↑ / ↓ / ← / → (または h/j/k/l) | カーソル移動 | | Enter / Space | カーソル位置に着手 | | q | 終了 |

盤面では、自分が置ける場所が緑色の · でハイライトされます。

AIの強さ

| レベル | 特徴 | | --- | --- | | Lv.1 入門 | ランダム性が高く、ほぼ気の向くままに着手 | | Lv.2 初級 | 浅い探索+盤面の位置評価を考慮 | | Lv.3 中級 | 角・辺の重要度や着手可能数(機動力)も評価 | | Lv.4 上級 | より深く先読みしつつ盤面を評価 | | Lv.5 最強 | 深い探索(最大6手先)で最も精度高く着手を選択 |

内部的にはミニマックス法とアルファベータ枝刈りを用い、レベルごとに探索の深さと評価関数の精度を変化させています。

必要環境

  • Python 3.9以上(npm で入れる場合は Node.js 18 以上も)
  • 端末は 57列 x 36行 以上

ライセンス

MIT