This is a React Native project where you play TicTacToe against ChatGPT. Every time the board is updated (when the user makes a move) ChatGPT is notified and is prompted to make it's next move. ChatGPT's response is parsed into a readable format and the move is executed. I made this project to learn more about React Native and using the OpenAI API.
- Clone the project
- Create a file named ".env" in the root directory and paste in OPENAI_API_KEY=your_openai_api_key (no quotes around your key)
- Run "yarn add expo" (if you don't have yarn then run "npm install -g yarn" first)
- Run "npm install --save-dev metro"
- Start the project with the command "npx expo start"