Rollex

Source

Summary

roll(roll_expr, dice \\ [%{__struct__: Rollex.Tokens.ParanoiaDice, arithmetic: 0.0, computers: 0.0, is_dice: true, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 1, 0, 0, <<69, 82, 67, 80, 148, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD][pP]"}, rejected_rolls: [], sides: 6, valid_rolls: []}, %{__struct__: Rollex.Tokens.FudgeDice, arithmetic: 0.0, is_dice: true, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 1, 0, 0, <<69, 82, 67, 80, 148, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD][fF]"}, rejected_rolls: [], sides: 3, valid_rolls: []}, %{__struct__: Rollex.Tokens.RegularDice, arithmetic: 0.0, is_dice: true, operation: nil, operation_values: nil, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 2, 0, 0, <<69, 82, 67, 80, 125, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD](\\d+)"}, rejected_rolls: [], sides: 0, valid_rolls: []}])

Functions

roll(roll_expr, dice \\ [%{__struct__: Rollex.Tokens.ParanoiaDice, arithmetic: 0.0, computers: 0.0, is_dice: true, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 1, 0, 0, <<69, 82, 67, 80, 148, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD][pP]"}, rejected_rolls: [], sides: 6, valid_rolls: []}, %{__struct__: Rollex.Tokens.FudgeDice, arithmetic: 0.0, is_dice: true, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 1, 0, 0, <<69, 82, 67, 80, 148, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD][fF]"}, rejected_rolls: [], sides: 3, valid_rolls: []}, %{__struct__: Rollex.Tokens.RegularDice, arithmetic: 0.0, is_dice: true, operation: nil, operation_values: nil, quantity: 0, raw_token: nil, regex: %{__struct__: Regex, opts: "", re_pattern: {:re_pattern, 2, 0, 0, <<69, 82, 67, 80, 125, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, source: "\\A(\\d*)[dD](\\d+)"}, rejected_rolls: [], sides: 0, valid_rolls: []}])
Source