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 🙏

© 2024 – Pkg Stats / Ryan Hefner

tsurukame_zan

v0.1.0

Published

You can play calculation games and learn the traditional Japanese math problem 'Tsurukame-zan'.

Downloads

3

Readme

tsurukame_zan

tsurukame_zan は、つるかめ算の問題がランダムに出題される CLI アプリケーションです。

インストール

npm i tsurukame_zan

アプリの遊び方

次のコマンドを実行すると、アプリが起動します。

tsurukame_zan

アプリが起動すると、モード選択画面が表示されます。 Image from Gyazo

このアプリでは、次の 3 つのモードで遊ぶことが出来ます。

基本モード

基本モードでは、つるかめ算が出題されます。 つるとかめの数をそれぞれ入力すると、答え合わせをすることができます。 Image from Gyazo

答え合わせを行った後は、次の選択肢が表示されるので、行いたい操作を選択して下さい。

  • もう一度基本モードの問題を出題する
  • モード選択画面に戻る
  • アプリを終了する

応用モード

応用モードでは、次の動物の中からランダムな組み合わせで、つるかめ算が出題されます。

  • つる
  • かめ
  • ヒトデ (足の数 : 5 本)
  • トンボ (足の数 : 6 本)
  • たこ (足の数 : 8 本)
  • いか (足の数 : 10 本)

Image from Gyazo

答え合わせを行った後は、次の選択肢が表示されるので、行いたい操作を選択して下さい。

  • もう一度応用モードの問題を出題する
  • モード選択画面に戻る
  • アプリを終了する

タイムアタックモード

タイムアタックモードでは、まず初めに待機画面が表示されます。 待機画面では、タイムアタックの説明と現在のハイスコアを確認することができます。

Image from Gyazo

待機画面で Enter を押すと、タイムアタックが開始します。

タイムアタックでは連続してつるかめ算が出題され、 5 問正解するまでにかかった時間がスコアになります。 ただし、問題を間違えると、間違えた数 x 5 秒スコアに加算されるので注意してください。

5 問正解すると、スコアが表示されます。 Image from Gyazo

また、次の選択肢が表示されるので、行いたい操作を選択して下さい。

  • もう一度タイムアタックモードで遊ぶ
  • モード選択画面に戻る
  • アプリを終了する

ハイスコアの初期値は 60 秒となっているので、最初はこの記録更新を目指してみて下さい。