ClashGO

command module
v0.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

README ΒΆ

ClashGO

A professional, high-performance Go port of the Clash of Clans AutoIt bot, optimized for Apple Silicon Macs using Android Debug Bridge (ADB).


πŸ›‘οΈ Anti-Ban & Safety

This project is designed with safety as a priority. All diagnostic and debug data that could identify your account or base layout is excluded from source control.

  • No Identifying Data: Screenshots of player bases and diagnostic JSONs are strictly git-ignored.
  • Local Execution: All vision processing happens on your machine.
  • Human-like Interaction: Randomized delays and confirmation-backed state transitions.

πŸš€ Key Features

  • Persistent ADB Transport: Low latency multiplexed TCP connection to ADB server (screencaps < 120ms).
  • Vision Engine: Real-time GoCV/OpenCV 4.x vision pipelines for state classification and red-zone segmentation.
  • Dynamic State Machine: Confirmation-backed state graph with Dijkstra-based shortest-path traversal.
  • Army Training Queue: Automated troop trainer with status recognition and resource extraction.
  • Strategy Attack Executor: CSV and YAML deployment parser with smart pacing and hero abilities.
  • GUI Remote Dashboard: Wails v2 + React dashboard for real-time status and configuration.

πŸ“‚ Project Structure

  • cmd/: Application entry points.
  • internal/: Core logic (ADB, Bot, Game State, Vision).
  • pkg/: Publicly reusable packages (Strategy parser).
  • assets/: UI templates and attack strategies.
  • docs/: Design documents and architecture overview.
  • tools/: Development and calibration utilities.
  • web/: React frontend for the dashboard.

πŸ› οΈ Installation & Setup

  1. Go 1.25+: Install Go.
  2. OpenCV 4.x:
    brew install opencv pkg-config
    
  3. Verify Configuration:
    pkg-config --libs --cflags opencv4
    

πŸƒ Running the Bot

CLI Mode (Headless)
go build -tags cli -o clashgo .
./clashgo
GUI Mode (Desktop)
wails dev

πŸ“„ License

Distributed under the GNU General Public License v3.0. See License.txt for more information.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
cmd
analyze_screen command
capture_digits command
check_screen command
debug_seg command
debug_state command
find_anchors command
find_next_blob command
find_silver command
find_ui command
grab command
grab_one command
live_loot command
loot_diag command
pixel_tuner command
precision_setup command
roi_tuner command
run_attack command
sample_colors command
test_live_end command
test_loot command
test_match command
test_pinch command
test_zoom command
verify_end command
verify_loot command
verify_rois command
visualize_match command
vtest command
internal
adb
bot
game
Package game provides Clash of Clans screen state detection, navigation, and auto-exploration for the coc-bot automation system.
Package game provides Clash of Clans screen state detection, navigation, and auto-exploration for the coc-bot automation system.
geo
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL