Socket
Book a DemoInstallSign in
Socket

monkerware

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monkerware

MonkerWare helpers

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

monkerware

NPM version Downloads

Imports MonkerWare ranges, a proprietary directory structure used by MonkerViewer.

Useful for tinkering with MonkerViewer ranges (.rng files) downloaded from RangeConverter.

Usage

Install the library with npm install monkerware

import { RangeImporter } from 'monkerware';

// Import a single .rng file (single branch)
// Returns a Map from hand representations (e.g. 'AA', 'AKs', 'AKo') to { p, ev } objects
// p = probability of playing the hand in this range as part of the GTO mixed strategy
// ev = expected value (in small blinds) when playing the hand in this range
const range = RangeImporter.importFile({ path: '/some/path/0.rng' });

// Import a directory with .rng files (full strategy)
// Returns a Map from branch names (e.g. '0', '5.3.1.0' to ranges (as returned from importFile)
const ranges = RangeImporter.importDirectory({ path: '/some/path/' });

Keywords

monkerware

FAQs

Package last updated on 27 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts