Skip to content

davidtwalsh/TicTacToeVsChatGPT

Repository files navigation

About

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.

Setup

  1. Clone the project
  2. Create a file named ".env" in the root directory and paste in OPENAI_API_KEY=your_openai_api_key (no quotes around your key)
  3. Run "yarn add expo" (if you don't have yarn then run "npm install -g yarn" first)
  4. Run "npm install --save-dev metro"
  5. Start the project with the command "npx expo start"

tictactoe1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published