This is a solution of acakkata problem, done in Ruby programming language.
In order for this solution to run, it needs:
- Ruby - The Ruby programming language, I use version 2.3.0
This solution is created in Linux environment, but it should work in any OSes that support the requirement.
To run the game using a default word lists (["buku", "baju", "rumah", "komputer"]) :
$ ruby game.rb
To run the game using dictionary lists instead (taken from https://raw.githubusercontent.com/geovedi/indonesian-wordlist/master/01-kbbi3-2001-sort-alpha.lst)
$ ruby game.rb dictionary