Skip to content

Versatile app with Rock-Paper-Scissors, AI chat, and calculator.

License

Notifications You must be signed in to change notification settings

Mustafabharmal/Prob-AI-Gaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Prob-AI-Gaming

Overview

Prob-AI-Gaming is a versatile application that combines gaming, artificial intelligence chat, and a calculator into a single platform. Users can enjoy playing a Rock-Paper-Scissors game against the computer, engage in conversations with an AI powered by OpenAI's GPT-3, and perform calculations using a feature-rich calculator.

Features

1. Rock-Paper-Scissors Game 🕹️

  • Player vs. Computer: Play a classic Rock-Paper-Scissors game against the computer.
  • Score Tracking: Keep track of scores for both the player and the computer.
  • Probability Display: Display the probability of winning for both the player and the computer.

2. AI Chat Interface 🤖

  • OpenAI GPT-3 Integration: Engage in conversations with an AI powered by OpenAI's GPT-3.
  • Dynamic Responses: Receive dynamic responses from the AI based on the input provided.
  • Clear Conversations: Easily clear the conversation history and start new interactions.

3. Feature-Rich Calculator 🧮

  • Arithmetic Operations: Perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
  • Square Root: Calculate square roots of numbers.
  • Percentage Calculation: Compute percentages.
  • Factorial: Calculate factorial of a number.
  • Combination (nCr) and Permutation (nPr): Compute combinations and permutations.

Project Structure

The project is organized into three main sections:

  • Rock-Paper-Scissors Game: The game is implemented using the tkinter library to create a graphical user interface. Images are used to represent the choices of Rock, Paper, and Scissors.

  • AI Chat Interface: OpenAI's GPT-3 is utilized for natural language processing. Conversations are displayed in a user-friendly interface, and users can interact with the AI by sending messages.

  • Feature-Rich Calculator: The calculator includes a wide range of mathematical functions. The interface allows users to input expressions, and the calculator evaluates and displays the results.

Usage

  • Rock-Paper-Scissors Game:

    • Click on the "Game" button to launch the game interface.
    • Press the "Play" button to start playing Rock-Paper-Scissors.
    • Make your choice by clicking on the respective buttons.
    • View the game result, score, and probabilities.
  • AI Chat Interface:

    • Click on the "AI" button to open the AI chat interface.
    • Type messages in the input box and press "Send" to receive AI responses.
    • Use the "Clear" button to clear the conversation history.
  • Feature-Rich Calculator:

    • Click on the "Calculator" button to access the calculator interface.
    • Enter mathematical expressions using the provided buttons.
    • Press "=" to evaluate the expression and view the result.
    • Use "AC" to clear the workspace.

Dependencies

  • Python 3.x
  • Tkinter
  • Pillow (PIL)
  • OpenAI (GPT-3)
  • NumPy (for mathematical operations)

Developed By:

Copyright Information 🇮🇳

This project is Copyrighted by the Govt. of India 📜

Explore the Certificate: Copyright Certificate

🚫 Unauthorized use, reproduction, or distribution is strictly prohibited without permission from the authorities.

Your respect for intellectual property is appreciated! 🙏

About

Versatile app with Rock-Paper-Scissors, AI chat, and calculator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages