Skip to content

Stupid command-line utility to generate a random bowling game

License

Notifications You must be signed in to change notification settings

ComprosoftCEO/bowl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bowl

Stupid command-line utility to generate a random bowling game

Compiling

Install Rust, then build the program using:

cargo build

Usage

Generate a random bowling game

Usage: bowl [OPTIONS] [GENERATOR]

Arguments:
  [GENERATOR]  Generator to use for the frames [default: dice]

Options:
      --ascii  Output ASCII-only text instead of ANSI symbols
  -h, --help   Print help

Generator Types:

  • dice - Generates frames based on the Bowling Dice Game
  • uniform - First roll picks a uniform random number between 0 and 10. Second roll picks a uniform random number between 0 and the first roll.

ANSI Output

bowl
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│3|4│3│/│5│/│5│/│5|2│3|3│5|2│2|2│4|5│4│3│ │
│ └─┤ └─┤ └─┤ └─┤ └─┤ └─┤ └─┤ └─┤ └─┤ └─┴─┤
│  7│ 22│ 37│ 52│ 59│ 65│ 72│ 76│ 85│   92│
└───┴───┴───┴───┴───┴───┴───┴───┴───┴─────┘

ASCII Output

bowl --ascii
___________________________________________
|3|5|X| |6|1|3|/|2|3|4|3|X| |X| |X| |X|X|5|
| '-| '-| '-| '-| '-| '-| '-| '-| '-| '---|
|  8| 25| 32| 44| 49| 56| 86|116|146|  171|
|___|___|___|___|___|___|___|___|___|_____|

Why?

It sounded fun to have a command-line program that could bowl for you.

About

Stupid command-line utility to generate a random bowling game

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages