Skip to content

A simple CLI game made in python. You guess the number from a min/max range. There are options for a simple AI to play and see the statistics for any number range.

Notifications You must be signed in to change notification settings

marvinb16/Python-Guessing-Game-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A simple CLI game made in python. You guess the number from a min/max range. There are options for a simple AI to play and see the statistics for any number range.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages