Project

sortviz

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Visualize sorting algorithms with Ruby and Curses lib
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
~> 3.0

Runtime

~> 1.0.2
 Project Readme

Sortviz

Maintainability

Sortviz is a small terminal program written in Ruby and uses the Curses library It lets you visualize sorting algorithms, you can add more sorting algorithms at will but for the time being it can only load the ones bundled with itself.

However, for pointers about writing plugins, check lib/algorithms and check the plugin system at lib/sortviz/algorithms.rb.

Looks like this

Screenshot

Installation

This gem is not intended for your application's Gemfile, it's a ruby program packaged as a Gem:

install it as:

$ gem install sortviz

Usage

$ sortviz -h

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/l0gicpath/sortviz. Please read Contributor Covenant and kindly attempt to adhere to it.

And don't make me do your job for you. It's OSS, be reasonable.

Why

I blogged about this here: Software, a labor of love

Future

I want this to be a teaching tool, so I'll be expanding this to support writing sorting code using pseudocode instead of Ruby. Should be a fun little language design exercise.

License

The gem is available as open source under the terms of the MIT License.