Skip to content

LoyolaChicagoCode/numguess-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

COMP 141 Number Guessing Game in Bash

Requirements

  • We have selected a random number between 1 and 100.
  • We’ll prompt you for your guess.
  • We'll tell you if your guess was too high or too low.
  • See if you can guess it in 10 turns or fewer.

Learning outcomes

  • Random number generation in bash
  • Checking whether a variable matches a regular expression (regex)
  • Arithmetic evaluation and comparisons
  • Conditionals (including multiple consecutive checks)
  • Loops along with continue and break statements
  • exit statement

Possible enhancements

  • Playing more than one game at a time
  • Keep track of shortest games played so far
  • Automated testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages