Skip to main content

Shape Habits Analysis and Personalized Evaluation

Project description

SHAPE: Shape Habits Analysis and Personalized Evaluation

SHAPE is a Go app with AI feedback, designed to help you identify and correct common mistakes based on your skill level.

SHAPE Application Screenshot

Quick Start

Run the application directly using uvx:

uvx goshape

The first time you run this, uv will automatically download the package, create a virtual environment, and install all dependencies.

When the application starts for the first time, it will also check for the required KataGo models in ~/.katrain/. If they are not found, a dialog will appear to guide you through downloading them.

Features

  • Personalized Mistake Analysis: The AI feedback is tailored to your rank, flagging mistakes that are relevant to your level.
  • Interactive Board: A clean, responsive Go board with heatmap visualizations.
  • Detailed AI Feedback: An analysis tab shows the score graph and KataGo's top move considerations.
  • Configurable Opponent: Play against an AI opponent with customizable rank, style, and behavior.
  • SGF Support: Save and load games, or copy/paste SGF data from the clipboard.

How to Use

The main window is divided into the board on the left and a control panel with three tabs on the right.

Board Controls

Underneath the board, you will find the main game controls:

  • Pass: Pass your turn.
  • Undo: Go back one move. This button is only active when there are moves to undo.
  • Redo: Go forward one move. This button is only active when you have undone moves.
  • AI Move: Force the AI to make a move, even if it is your turn.

The "Play" Tab

This is the main control center for your game.

  • Game Control:
    • Play as: Choose to play as Black or White.
    • Opponent Controls: Force the AI to move or enable Auto-play for the AI to play automatically when it's its turn.
  • Player Settings:
    • Current Rank: Your current Go skill level. This is used to determine which mistakes are typical for you.
    • Target Rank: The skill level you want to aim for. Mistakes common at this level won't be flagged.
    • Opponent: The type and level of the AI opponent. This supports modern, pre-AlphaGo style, and historical professional styles.
  • Heatmap: Visualize the AI's preferred moves for different player models (Current Rank, Target Rank, AI, and Opponent). You can select multiple heatmaps to get a blended view.
  • Info Panel: A collapsible panel (shortcut: Ctrl+0) that shows detailed statistics about the last move.

The "AI Analysis" Tab

This tab provides feedback from the AI.

  • Score Graph: A graph showing the score progression over the course of the game. The Y-axis is centered at 0, with a dashed line indicating an even game.
  • Top Moves: A table showing KataGo's top 5 recommended moves for the current position, including win rate, score lead, and visits.
  • Deeper AI Analysis: A button to request a much deeper analysis (more visits) for the current position.

The "Settings" Tab

This tab allows you to fine-tune the AI's behavior.

  • Policy Sampling: These settings affect the AI's move selection and the heatmap visualization. Tooltips are provided in the app for detailed explanations.
    • Top K: Considers only the top K moves.
    • Top P: Considers moves from the smallest set whose cumulative probability exceeds P.
    • Min P: Considers only moves with a probability of at least P times the probability of the best move.
  • Analysis Settings:
    • Visits: The number of playouts the AI will perform for its analysis. Higher values lead to stronger play but require more processing time.
  • Mistake Feedback: These settings determine when the game will automatically halt. The game halts if the mistake size is above the configured threshold AND either of the probability conditions are met.

Keep in mind that the techniques used are more likely to be helpful up to low-dan levels, and may not be as effective at high-dan or professional levels.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goshape-0.2.0.tar.gz (91.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goshape-0.2.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file goshape-0.2.0.tar.gz.

File metadata

  • Download URL: goshape-0.2.0.tar.gz
  • Upload date:
  • Size: 91.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for goshape-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1229be99a03b0aa455f3045f7ac7f2ad668da1e280e04879f082a3482ceeebcb
MD5 4716cd86e17b2456eadb6ac1c015eadd
BLAKE2b-256 794d63bb7554f3921664c57e13c39eb03ecd2b98480851202addc5da145ff873

See more details on using hashes here.

Provenance

The following attestation bundles were made for goshape-0.2.0.tar.gz:

Publisher: test_and_build.yml on sanderland/shape

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file goshape-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: goshape-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for goshape-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20a9d1d2217a7f01ec83eafb807f84a658f58385cf146128d742adae8741f960
MD5 34ab557465230d44adfca8abb7e144ca
BLAKE2b-256 7d31f9cb3aaad59c86f8965bc63fdc267e58dc018603804a16f9b8a9f70b2b69

See more details on using hashes here.

Provenance

The following attestation bundles were made for goshape-0.2.0-py3-none-any.whl:

Publisher: test_and_build.yml on sanderland/shape

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page