Screenshots
🎬 🍿 Click the image below to watch our DEMO VIDEO
👇
SwapGo is an innovative Go project aimed at transforming the traditional black and white game into an adventure filled with stories and emotions. By combining Go with advanced Artificial Intelligence Language Models (AI-LLM), we bring life and meaning to every move.
As the game progresses, AI generates real-time story scenes and character dialogues corresponding to the game situation, immersing players and spectators in a dynamically changing narrative world. This is not just a game of Go, but a wonderful journey that unfolds with each stone placed, offering Go enthusiasts an unprecedented experience.
SwapGo is a participating project in the "Build with Claude June 2024 contest". In an era where AI Go programs have surpassed human abilities, we consider how to use AI technology to create new possibilities for the field of Go.
Our inspiration comes from the essence of Go—military simulation. SwapGo uses AI to simulate war scenarios, allowing players to experience the depth of strategy and tactics while playing. Through this innovative approach, we hope not only to enrich the Go gaming experience but also to help people understand the complexity of war more deeply, thereby promoting the idea of peace.
graph TD
A[SWAPGO Client] --> B[Play Go]
B --> C[KataGO AI]
B --> D[Claude 3.5]
C --> E[AI Model]
D --> F[Generate situation analysis story]
D --> G[Generate situation image prompts]
F --> H[Dall-E 3]
H --> I[Situation image]
H --> J[SWAPGO Client]
- The demo site supports a maximum of 2 users simultaneously due to performance considerations.
- We cannot guarantee continuous availability of the demo site.
- Your understanding and patience are greatly appreciated.
To ensure the best experience, we recommend running SwapGo locally. Please follow these steps to set up:
-
KataGo Executable: Download the appropriate version for your operating system from KataGo Binary.
-
Model Parameter File: Download the v1.4.0 model parameter file from KataGo Neural Nets.
-
Python Main File (
ana.py
): Modify line 34 to match your local file locations:katago = subprocess.Popen( ["./katago", "analysis", "-config", "./ana.cfg", "-model", "./g170e-b20c256x2-s5303129600-d1228401921.bin.gz", *additional_args], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, )
Replace
./katago
,./ana.cfg
, and./g170e-b20c256x2-s5303129600-d1228401921.bin.gz
with the correct paths on your system. -
KataGo Configuration File (
ana.cfg
) -
API Server (
give.js
)
Place all files in the same directory.
The default API URL is http://localhost:3031/ana
.
This project uses Next.js.
- Node.js version 18 or higher
Execute the following command:
yarn dev
Access the web interface at http://localhost:3000
Additional Configuration In the go.js file, modify line 239 to change the production URL to the local API URL
- await axios.post(`https://swapgo.yosgo.com/ana`, {
+ await axios.post(`http://localhost:3031/ana`, {
moves: payload,
})
Ensure this change is made to connect the client to your local KataGo AI server.
- KataGo: Used for simulating opponents
We welcome community contributions! If you have any ideas for improvements or find any bugs, please don't hesitate to submit an issue or pull request.
---
SwapGo - Redefining the Go experience, ushering in a new era of intelligent narrative.