.NET Standard 2.0
This is a prerelease version of Murphy.VampireDice.
dotnet add package Murphy.VampireDice --version
NuGet\Install-Package Murphy.VampireDice -Version
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="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Murphy.VampireDice --version
#r "nuget: Murphy.VampireDice,"
#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=

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


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.


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.


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


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. 
.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)
Additional computed target framework(s)
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 60 4/18/2023 59 4/13/2023 69 3/22/2023 68 3/11/2023 68 2/27/2023 69 2/22/2023 71 2/20/2023 63 2/15/2023 64 2/14/2023