Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 733 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 733 Bytes

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 ...