Skip to content

This project aims to create an interactive chess-playing experience using GPT-4, where users can play chess against an AI model named Magnus. The project leverages GPT-4's ability to understand chess rules and strategies to generate moves based on the current board state.

License

Notifications You must be signed in to change notification settings

soliblue/ChessGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessGPT

Goal

The goal of this project is to build an interactive chess platform that allows users to play against an AI opponent named Magnus, powered by GPT-4. The project will use prompt engineering techniques and an understanding of chess rules and strategies to extract meaningful and competitive moves from the GPT-4 model.

How We Plan to Achieve This

  1. Develop an effective prompt for GPT-4: We will use prompt engineering best practices and mental models to create a well-structured and concise prompt that asks Magnus for a recommended move and the rationale behind it.

  2. Implement a chessboard representation: The project will use the FEN (Forsyth-Edwards Notation) format to represent the chessboard state and provide it to GPT-4 as part of the prompt.

  3. Extract and apply the AI's move: We will parse the AI's response to extract the recommended move, enclosed within tags, and update the chessboard accordingly.

  4. Render the updated chessboard: The project will display the new board position after applying the AI's move, allowing users to visualize the game and plan their next move.

  5. Interact with users: The project will receive user inputs for their moves and update the chessboard state, alternating between the user and the AI until the game concludes.

About

This project aims to create an interactive chess-playing experience using GPT-4, where users can play chess against an AI model named Magnus. The project leverages GPT-4's ability to understand chess rules and strategies to generate moves based on the current board state.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published