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

turnamentti

v1.2.2

Published

Creates a top X list by making individual items compete against each other

Downloads

7

Readme

Turnamentti

Create top lists by having items compete against each other

Description

If you want to come up with top 10 board games by Uwe Rosenberg, Turnamentti will help you put all those great games in the right order. Just list all the games you want to consider in a text file, feed the file to Turnamentti and then answer simple questions that put two games against each other and all you have to do is to pick the game you prefer. Once you've answered enough questions, you'll get a list of results in order of your preference.

Turnamentti is made for creating board game ranking lists, but it can be used for anything. However, the options refer to games to respect the original purpose of the program.

Install

NPM

npm install --global turnamentti

Usage

$ turnamentti --help

    Usage
      $ turnamentti <name_of_the_tournament>
 
    Options
      --init, -i  			Initialize the tournament with a list of games
      --listGames, -l			List games in the tournament
      --compareGames, -c		Run comparisons between games
      --displayResults, -d	Display tournament results

    Examples
      $ turnamentti uwetop10 --init list_of_uwe_games.txt
      $ turnamentti --listGames uwetop10
      $ turnamentti --compareGames uwetop10
      $ turnamentti --displayResults uwetop10

Notes

Turnamentti runs a full round-robin tournament. For N items, that's (N^2 - N) / 2 matchups. It's a lot, but most of the time you don't have to go through the whole round-robin to get a decent set of results.

Also, in order to make the round-robin shorter, you can retire items. When you see a matchup, you'll see the stats (wins/total matches) for each item. If some item is doing poorly, it's time to retire it out of the tournament. When you choose to retire an item, the other item will win the matchup and all matchups featuring the retired item will be removed from the schedule and will count as wins for the opposing item.

When comparing items, once Turnamentti has enough data it will start offering predictions about which item you'll prefer. The predicted winner of the matchup will be shown in red.

The final results will feature a floating point number as a score for each item. The integer part of the number is the number of victories the item has. The decimal part that is used to break ties is the total points of the items that item has beaten.

Author

License

MIT