Skip to content

A Swift library to simulate dice rolls, as in board games or pen-and-paper role playing games

License

Notifications You must be signed in to change notification settings

marcoconti83/DiceExpression

Repository files navigation

DiceExpression Build Status

A Swift library to simulate dice rolls, as in board games or pen-and-paper role playing games. Available as a framework for iOS and OSX, Carthage compatible.

Example usage

do {
	let roll = try DiceExpression("3d6+20").roll()
	print("Result: \(roll.result)")
} catch {
	print("Invalid expression: \(error)")
}

About

A Swift library to simulate dice rolls, as in board games or pen-and-paper role playing games

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •