Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devstopfix/elite-galaxy
Ruby library to generate planet names of the Elite universe
https://github.com/devstopfix/elite-galaxy
Last synced: 16 days ago
JSON representation
Ruby library to generate planet names of the Elite universe
- Host: GitHub
- URL: https://github.com/devstopfix/elite-galaxy
- Owner: devstopfix
- License: mit
- Created: 2015-04-04T10:57:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T10:02:45.000Z (over 4 years ago)
- Last Synced: 2024-10-10T14:47:07.782Z (28 days ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Elite Planet Name Generator
===========================A [Ruby](https://www.ruby-lang.org/en/) library that generates [planet](http://en.wikipedia.org/wiki/Planet) names from the orginal [Elite video game][1].
Samples:
* Lave
* Isinor
* Zaonce## Credits
The algorithm for the planet name generation is © 1984 [Ian Bell](http://www.iancgbell.clara.net/) and [David Braben](https://twitter.com/DavidBraben). This Ruby source is a conversion of the [Elite C sources](http://www.iancgbell.clara.net/elite/text/index.htm).
## Build & Install
gem build elite-galaxy.gemspec
gem install ./elite-galaxy-1.0.0.gem## Usage
```ruby
require 'elite/galaxy'planets = Elite::Galaxy.new.planets.take(256)
planets[7]
# "Lave"
```## Bugs
Some seeds (e.g. [0x00d2 0x669d 0x0d37]) will create a galaxy containing a planet with no letters in the name.
## License
The algorithm is Copyright 1984/1999 of Ian Bell and David Braben. This Ruby library is distributed under the MIT License.
[1]: http://en.wikipedia.org/wiki/Elite_(video_game)