Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 750 Bytes

File metadata and controls

18 lines (15 loc) · 750 Bytes

Python_Guess

Guess is a class that has the following structure:

Guess(Minimum, Maximum, Target_number, Filename) Inputs:

  1. Minimum - Integer (0 < Minimum < Maximum), -1 for random game.
  2. Maximum - Integer (Minimum < Maximum < INF)
  3. Target_Number - Integer (Minimum <= Target_number <= Maximum)
  4. Filename - String (Must specify file extension. IE. filename.txt, saved.csv, etc) Can be NONE or blank.

If you want to play a random game, set Minimum to -1.

If you want to set a range, but random target within set Target_number to -1

To run call function Guess.playGame()

Automated guessing function (recursive): call Guess.ai_Play()


simple game with error handling