dsh-bgame: DeepSeek Harness Web Mini-Game Plugin

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-arcade are 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

  1. Select Opponent: Choose “Computer Opponent” or “Model Opponent” in the game lobby.
  2. Adjust Difficulty: If a computer opponent is selected, choose Easy, Normal, or Hard in the settings.
  3. Play the Game: Operate according to the game rules; real-time waiting time is displayed while the model is thinking.
  4. Pause and Resume: Clicking pause during a game saves the current state. You can resume directly the next time you open it.
  5. Load Saves: After the initial installation, browser saves from the older dsh-arcade will 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.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye