Skip to content

About

A command line implementation of Magic 8 Ball

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Magic 8 Ball CLI in C

A command-line Magic 8 Ball implemented in C.

Features

  • Classic Magic 8 Ball replies
  • Original Magic 8 Ball probability mode: positive 50%, neutral 25%, negative 25%
  • Balanced reply-type mode: positive 33.3%, neutral 33.3%, negative 33.3%
  • Short and long command-line options
  • ASCII ball output

Build

gcc -Wall -Wextra -std=c11 magic.c -o magic

Usage

./magic [options] question

Examples

./magic "Will I pass the exam?"

./magic --original-probabilities false "Will I pass the exam?"

./magic -o true "Should I continue?"

Options

-h, --help Display help message.

-o, --original-probabilities [true|false] Use original Magic 8 Ball reply-type probabilities. Default is true.

About

A command line implementation of Magic 8 Ball

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages