Skip to content

puffo/spiral-drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spiral-drawing

An example solution for printing out a spiral shape via the console.

Uses Ruby 2.3.8.

Getting up and running

If you're feeling lazy, and would just like to see a bunch of different spirals:

ruby demo_spirals.rb

Otherwise, to add the spirals to your project, instantiate a spiral like so:

$ require './spiral.rb' #=> true
$ Spiral.call(size: 5)

Running tests

Assuming your Ruby environment is setup correctly, simply add minitest:

gem install minitest

and run these commands:

ruby test/canvas_test.rb
ruby test/spiral_test.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages