Skip to content

cmdwtf/NumberStones

Repository files navigation

🔢💎 NumberStones

A .NET library that parses expressions to roll dice, and other such random things.

🥅 Project Goals

Provide a simple, easy to use interface for dice rolling and simple mathematic expression solving.

💡 Inspiration

NumberStones was born out of a desire to replace the late Sidekick Discord bot. There's a lot of functionality missing and a long way to go, but this library will serve as the RNG backend for MathRox: the Discord front end for NumberStones.

📝 License

NumberStones is licensed under the Zero-Clause BSD License (SPDX-License-Identifier: 0BSD). If you're interested in NumberStones under other terms, please contact the authors. NumberStones makes use of several open source packages. Those packages are each covered by their own copyrights and licenses, which are available via the tooling you use to restore the packages when building. As well, some individual files are licensed separately, as designated at the top of those files.

Copyright © 2021 Chris March Dailey

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Licensed Software

NumberStones makes uses of several licensed portions of code, each licensed under their own terms by their authors. In particular, some of those software licenses require the following notices.

  • Portions of the code (particularly that in Source/Random) based on the work of Faron Bracy from the RogueSharp project. Original work was licensed under the MIT license. See .licenses/RogueSharp_LICENSE.txt for more details.
  • Some portions of code, particularly some class names and documentation are from the work of Chris Wagner and Ed Ropple from the DiceNotation project. Original work was licensed under the MIT license. See .licenses/DiceNotation_LICENSE.txt for more details.
  • The nuget package superpower is licensed under the Apache License 2.0 from datalust/superpower.