Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devstopfix/elite
Planet name generator
https://github.com/devstopfix/elite
Last synced: 16 days ago
JSON representation
Planet name generator
- Host: GitHub
- URL: https://github.com/devstopfix/elite
- Owner: devstopfix
- License: gpl-3.0
- Created: 2013-11-02T14:52:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-19T19:44:20.000Z (almost 11 years ago)
- Last Synced: 2024-10-10T14:46:48.482Z (28 days ago)
- Language: Clojure
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Planet Name Generator
=====================A [Clojure](http://clojure.org/) library that generates a lazy sequence of [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). The Clojure source is a conversion of the [Elite C sources](http://www.iancgbell.clara.net/elite/text/index.htm).
## Usage
```clj
(require ['devstopfix.elite :as 'elite])(take 256 (elite/planets-in-elite-galaxy 1))
(nth (elite/planets-in-elite-galaxy 1) 7)
; "Lave"(take 256 (elite/planets-in-random-galaxy))
```## 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 clojure code is Copyright © 2013 J Every and distributed under the GNU GENERAL PUBLIC LICENSE version 3.0.
[1]: http://en.wikipedia.org/wiki/Elite_(video_game)