https://github.com/four43/ship_gen
Generate spaceships on the command line! (Personal Intro to Rust)
https://github.com/four43/ship_gen
cli getting-started procedural-generation rust-lang
Last synced: 9 months ago
JSON representation
Generate spaceships on the command line! (Personal Intro to Rust)
- Host: GitHub
- URL: https://github.com/four43/ship_gen
- Owner: four43
- Created: 2021-11-15T02:57:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T16:20:53.000Z (over 4 years ago)
- Last Synced: 2025-08-25T15:45:28.370Z (9 months ago)
- Topics: cli, getting-started, procedural-generation, rust-lang
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# S H I P G E N
Generates spaceships on the command line. Benny would love it.
This is a simple little Rust app to get my feet wet with the language as I work through the official rust book.
## Usage
```shell
./ship_gen --help
rocket
USAGE:
ship_gen [OPTIONS] --height
OPTIONS:
-h, --height
--help Print help information
-p, --palette [default: america]
```
Running it spits out ships on stdout, like:
```shell
./ship_gen --height 20
│
║
/'\
│ │
/│ │\
│ │
│°│
│°│
│°│
┌┘ └┐
│ │
│ O │
│ │
│ │
│° °│
/│ ^ │\
/_│ | │_\
\_/
( )
·
```
## TODO
* Implement color palettes