The Web profile of DeepSeek Harness (DSH) is typically used to build browser-based agent applications. If you wish to embed interactive games into the conversation flow, the cost of writing frontend code directly is relatively high. The dsh-bgame plugin provides a ready-made mini-game environment supporting Texas Hold’em, Blackjack, Gomoku, and UNO, allowing users to play directly against the computer or a model within the DSH environment.
Plugin Positioning¶
Maintained by Kiteluo, this plugin aims to address the need for game integration within the DSH Web environment. It ports several classic tabletop games to the web and provides both local computer opponents and AI opponents based on configured models.
Core Features¶
- Included Games: Texas Hold’em, Blackjack, Gomoku, UNO.
- Game Modes:
- Computer Opponents: Run locally without consuming model quota. Three difficulty levels are available: Easy, Normal, and Hard. The Easy strategy is random; Normal adopts basic rules; Hard checks for wins and blocks in Gomoku, and estimates win rates using public information in Texas Hold’em.
- Model Opponents: Use configured model services and consume the model’s API quota. The model only has access to its own hand and public information; the program validates the legality of its moves.
- Session Control:
- Pause / Back to Work: Cancels the current game request and saves progress without inserting messages into the work session.
- Auto-save: Each game saves a single session, allowing you to resume upon reopening. Browser saves from the older
dsh-arcadeare automatically read.
Installation and Activation¶
Environment requirements must be met before installation: Node.js 24 or above, and an initialized Web profile. The currently verified version is DSH 0.1.7-rc.2.
The installation command is as follows:
dsh plugin --profile web add github:Kiteluo/dsh-bgame
After executing the command, refresh the webpage or restart the Web service. Open dsh-bgame from the left navigation or the plugin list.
Typical Usage¶
- Select Opponent: Choose “Computer Opponent” or “Model Opponent” in the game lobby.
- Adjust Difficulty: If a computer opponent is selected, choose Easy, Normal, or Hard in the settings.
- Play the Game: Operate according to the game rules; real-time waiting time is displayed while the model is thinking.
- Pause and Resume: Clicking pause during a game saves the current state. You can resume directly the next time you open it.
- Load Saves: After the initial installation, browser saves from the older
dsh-arcadewill be automatically loaded.
Use Cases and Notes¶
- Use Cases: Suitable for adding interactive segments in DSH Web sessions or testing the model’s decision-making capabilities.
- Notes:
- The plugin runs with the current DSH process permissions.
- Clearing site data will delete saves.
- Once the model returns a complete and legal JSON move, its choice will be retained even if the output quota is exhausted.
Summary¶
The dsh-bgame plugin provides a lightweight game integration solution for DSH Web without requiring additional development. For more details, please refer to the project directory or the GitHub repository.