NickNameMacker

tenslar License

Simple nick-name maker.

When a "WordPool" with multiple characters is passed to the nickname generator "NickNameMaker", it will generate a nickname using the characters set in the WordPool.

Usage

import com.github.tenslar.nicknamemacker._

val word_pool = new WordPool(Array("hello", "world"))
val generator = new NicknameMaker(word_pool)

println(generator.generateNickName(2))
// worldworld or hellohello or helloworld ...