Skip to content

kittsville/Dodgy-Decider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dodgy Decider

"It works, for the most part" - An optimistic contributor

A small PHP tool for consistently making decisions based off of a given seed.

Created for procedurally generating the world of the text adventure game 10 Minutes to Meston.

Usage

use Kittsville\DodgyDecider\Decider;

$decider = new Decider('f37485e931');

echo $decider->chooseElement(['a', 'b', 'c'], 'choose a letter');

Contributing

As per the name I am fully aware how terrible this is. Feel free contribute with suggestions, pull requests or a completely new decider you've built yourself.

License

Dodgy-Decider is open-sourced software licensed under the MIT license.