summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/lib
AgeCommit message (Collapse)AuthorFilesLines
2020-12-03Fix memory leakage between current and future statea14m1-1/+2
2020-12-02Update the Universe implementationa14m1-3/+33
Moving neighbors implementation from cells to universe as per the single responsibility principle that the universe should be responsible for it's object states and that the cells are only aware of their neighbors (via the universe) by passing the neighbors sub-universe to each cell
2020-12-02Remove unused requires from Cella14m1-1/+0
2020-12-02Use x,y coordinates instead of pos_x (and disable rubocop warning)a14m2-11/+11
2020-12-02Refactor the cell class to allow easier testing and SRP interfacea14m1-33/+9
2020-12-02Implement the basics of GameOfLife universea14m1-6/+15
2020-12-02Add the implementation for the GameOfLife Cell classa14m1-3/+93
2020-11-30Add the cyclic plane (circular array) implementation w/testinga14m1-0/+27
2020-11-30Alias the method alive?a14m1-1/+3
This provide the future flexibility when needing to override the method to provide a custom behaviour it can be done and removing of the alias and the rest of the class should be untouched
2020-11-30Configure live/dead cells representation via CLI optionsa14m1-1/+2
2020-11-30Add the x,y position to the cell attributesa14m2-4/+8
2020-11-30Add the private populate method to populate the generated universea14m1-10/+14
2020-11-30Use class notation for adding class methodsa14m1-23/+26
This to allow private class methods Ref: https://medium.com/rubycademy/3-ways-to-make-class-methods-private-in-ruby-64b970e54613
2020-11-29Fix some linting issuesa14m1-1/+5
2020-11-29Remove linting issuea14m1-1/+1
2020-11-29Use the more common delegate method (ruby std not rails)a14m1-1/+1
2020-11-29Add the basic Universe classa14m1-0/+26
2020-11-29Add the basic cell representation objecta14m2-0/+20
2020-11-29Add the basics for input generatora14m2-0/+36
2020-11-29Auto load the generators (to lazy load) only required generatora14m1-1/+5
2020-11-29Add CLI default options parsing (Thor)a14m1-0/+1
2020-11-27Initial commit of the ruby gema14m2-0/+13