Skip to content

Generate spaceships on the command line! (Personal Intro to Rust)

Notifications You must be signed in to change notification settings

four43/ship_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

./ship_gen --help
rocket 

USAGE:
    ship_gen [OPTIONS] --height <HEIGHT>

OPTIONS:
    -h, --height <HEIGHT>      
        --help                 Print help information
    -p, --palette <PALETTE>    [default: america]

Running it spits out ships on stdout, like:

./ship_gen --height 20
    │
    ║
   /'\
   │ │
  /│ │\
   │ │
   │°│
   │°│
   │°│
  ┌┘ └┐
  │   │
  │ O │
  │   │
  │   │
  │° °│
 /│ ^ │\
/_│ | │_\
   \_/
   ( )
    ·

TODO

  • Implement color palettes

About

Generate spaceships on the command line! (Personal Intro to Rust)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages