connect4_mcp
connect4_mcp is an AI implementation of the Connect Four game in Python. This project serves as a valuable resource for learning game logic and AI algorithms. The AI competes against the player using strategic thinking to achieve victory. The code is structured simply, making it accessible for beginners to understand.
GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
35
Forks
1
Issues
1
MCP CONNECT 4
While people use MCP to build powerful connections with various tools like db's or the web
one can imagine a great and perhaps more advanced interaction between user and assistant,
would be to play a game. So I say why not. Let's play games!
This is the premise behind this repo. Also its fun!
MCP Connect 4 offers structure to the state of the game. The assistant plays the move it believes
and also plays your move. (this might be a criticism)
How to use
Simply clone the repo and add the following to the json config of claude (or massage similarly for other clients) this:
{
"connect4": {
"command": "absolute path to uv",
"args": [
"--directory",
"absolute path to this repo",
"run",
"main.py"
]
}
}
Currently one can view the board by seeing the tool call from the chat of the LLM provider (should do better)...