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

game-of-pure-strategy

v3.0.0

Published

game-of-pure-strategy

Readme

📦 game-of-pure-stratergy

A simple Node.js-based CLI tool that simulates a card game to generate large datasets in CSV format.

This tool is useful for generating test data for machine learning, analytics, or simulations.


🚀 Installation

npm install game-of-pure-stratergy

🧾 Usage

npx generateData

This command will:

  • Simulate multiple rounds of the game
  • Write the results to a data.csv file in your current working directory
  • Automatically append data if the file already exists

🃏 Game Logic

Each round:

  • Uses three shuffled decks: one for player A, one for player B, and one as the draw pile.
  • Players bid one card each, and a draw card is revealed.
  • The player with the higher bid wins the draw card points (+ any pile points from previous ties).
  • If both bids are equal, the card's points go to a tie pile.
  • Points are updated and recorded for each turn.

🗃️ Output Format

The output CSV file (data.csv) contains the following columns:

Drawing Card,Player A Bid,Player B Bid,Player A Points,Player B Points

Sample Output:

7,10,5,7,0
9,3,9,7,9
4,2,1,11,9
...

📂 File Location

The CSV file is created in the current working directory where the command is executed:

/path/to/current/folder/data.csv

📝 License

MIT