Murphy.VampireDice 1.0.0.6757-beta2

This is a prerelease version of Murphy.VampireDice.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Murphy.VampireDice --version 1.0.0.6757-beta2                
NuGet\Install-Package Murphy.VampireDice -Version 1.0.0.6757-beta2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Murphy.VampireDice" Version="1.0.0.6757-beta2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Murphy.VampireDice --version 1.0.0.6757-beta2                
#r "nuget: Murphy.VampireDice, 1.0.0.6757-beta2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Murphy.VampireDice as a Cake Addin
#addin nuget:?package=Murphy.VampireDice&version=1.0.0.6757-beta2&prerelease

// Install Murphy.VampireDice as a Cake Tool
#tool nuget:?package=Murphy.VampireDice&version=1.0.0.6757-beta2&prerelease                

README

VampireDice is a small utility library that helps with the simulation and statistical evaluation of dice pools occurring in the Vampire v5 role playing game.

In addition to the core library, a command line interface and a Telegram bot expose the functionality for interactive use.

Installation

You can install the VampireDice library via NuGet or use the VampireDice Bot interactively.

To build VampireDice from source you will need an F# 7.0 compiler (or newer) and a .NET development environment. The .sln and .fsproj files in the source directories should be understood by .NET SDK command line tools, or IDEs such as VSCode, VisualStudio, or Rider.

Usage

Here's a brief example for using the VampireDice library:

#r "nuget: Murphy.VampireDice, 1.0.0.*"
open System
open Murphy.VampireDice

let random = Random()
let pool = { Count = 5; Hunger = 2 }

let qualifier, result = Pool.simulate random pool
printfn $"simulate -> %d{result} (%O{qualifier})"

let result = Pool.estimate random pool
printfn $"estimate -> %.1f{result.Expected}, P[result >= 2] = %.0f{100.0 * result.SuccessAtLeast(2)}%%"

Similar results can be obtained from the bot using the commands:

/hunger 2
/roll 5
/estimate 5, difficulty 2

Or from the command line using the calls:

v5d roll 5 --hunger 2
v5d estimate 5 --hunger 2 --difficulty 2

License

VampireDice is licensed under the Apache License, Version 2.0. Refer to the NOTICE for licenses of third-party dependencies.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.52525 216 1/2/2024
1.0.0.15637-beta9 122 4/18/2023
1.0.0.14832-beta8 124 4/13/2023
1.0.0.11760-beta7 128 3/22/2023
1.0.0.10088-beta6 129 3/11/2023
1.0.0.8488-beta5 128 2/27/2023
1.0.0.7724-beta4 132 2/22/2023
1.0.0.7426-beta3 134 2/20/2023
1.0.0.6757-beta2 130 2/15/2023
1.0.0.6597-beta1 127 2/14/2023