Welcome to the TicTacToe with ChatGPT Opponent project! This Next.js 12 application combines the classic game of TicTacToe with a unique twist—your opponent is powered by ChatGPT, a powerful language model developed by OpenAI. The project showcases the integration of artificial intelligence to enhance the gaming experience.
-
ChatGPT Conversations: The game incorporates natural language processing and understanding through ChatGPT, making the opponent engaging and conversational.
-
Next.js 12: The application is built using Next.js 12, taking advantage of the latest features and improvements in the framework.
-
Interactive Gameplay: Enjoy a seamless and interactive TicTacToe gaming experience against an intelligent AI opponent.
- npm (Node Package Manager)
- Node.js
- ChatGPT assistant ( Model: gpt-4-1106-preview )
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/tictactoe-chatgpt.git
- Navigate to the project directory:
cd tic-tac-toe
- Create .env file with the followings in the projects root directory:
OPENAI_API_KEY=Your_api_key
ASSISTANT_ID=Your_assistant_id
- Install dependencies:
npm install
- Start the development server:
npm run dev
Open your browser and go to http://localhost:3000 to play the TicTacToe game against ChatGPT.
-
Game Rules: Follow the standard TicTacToe rules to play the game. Make a move by clicking on an empty cell, and the AI opponent (ChatGPT) will respond with its move.
-
Conversations: Engage in conversations with ChatGPT by typing in the chatbox. Experiment with different phrases, questions, or even mention the use of artificial intelligence during your interactions.
When deploying the application for production, consider optimizing the build and hosting for improved performance. You can deploy the Next.js application on platforms like Vercel, Netlify, or any other hosting provider of your choice.
This project is made possible by the incredible capabilities of ChatGPT, developed by OpenAI. Special thanks to the open-source community for the Next.js framework.
This README file was generated using artificial intelligence. If you have any questions or need further assistance, feel free to reach out to the project manager or the development team.
Happy gaming! 🎮🤖