diff options
| author | a14m <[email protected]> | 2020-12-03 15:06:01 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-12-03 15:07:49 +0100 |
| commit | 1404a38b5b6fbfe971729d24bd46e10b8d2da9fc (patch) | |
| tree | 831382d45a92ca4effb8f4a0410cbda209212a3f /CLI/ruby/lib | |
| parent | 27b78771d819c4d9c1fe8537429d16fbc41d6a34 (diff) | |
Add the seed generator place holder class and test (and CLI error)
Diffstat (limited to 'CLI/ruby/lib')
| -rw-r--r-- | CLI/ruby/lib/game_of_life/generators/seed.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CLI/ruby/lib/game_of_life/generators/seed.rb b/CLI/ruby/lib/game_of_life/generators/seed.rb new file mode 100644 index 0000000..43dea04 --- /dev/null +++ b/CLI/ruby/lib/game_of_life/generators/seed.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module GameOfLife + module Generators + # Generate a new Universe/Board from a seed number + module Seed + class << self + # Generate a new Universe/Board from a seed number + # @param options [Hash] CLI options to generate initial conditions + # @option options [Numeric] "seed" number to use for generation + # @option options [Numeric] "width" (floored) and used as the width of the universe + # @option options [Numeric] "height" (floored) and used as the height of the universe + # @return [GameOfLife::Universe] populated with the parsed input + def new(options) + fail NotImplementedError + end + end + end + end +end |
