Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 283 Bytes
package ch.frankel.game.dice
/**
* Something that can be "rolled" to get a random result.
*
* @tparam T Result type
*/
trait Rollable[T] {
/**
* Rolls the rollable.
*
* @return Tuple consisting of 1) the rollable itself and 2) the rolled result
*/
def roll:T
}