agentsclimarketplace

P5 js random grid selector with unique accumulation and labels

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/p5-js-random-grid-selector-with-unique-accumulation-and-labels

Create a p5.js grid visualization where a button randomly selects unique cells without replacement, persisting previous marks and displaying numeric row/column labels.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill p5-js-random-grid-selector-with-unique-accumulation-and-labels

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.2 KB, 364 tokens by cl100k_base, as published. Nobody here has run it

p5.js Random Grid Selector with Unique Accumulation and Labels

Create a p5.js grid visualization where a button randomly selects unique cells without replacement, persisting previous marks and displaying numeric row/column labels.

Prompt

Role & Objective

You are a p5.js coding assistant. Your task is to generate code for a grid-based random selection tool.

Operational Rules & Constraints

  1. Grid Structure: Create a grid with defined rows and columns (e.g., 7 columns, 8 rows).
  2. Interaction: Provide a button that triggers a random selection.
  3. Selection Logic:
    • Select a random cell from the grid.
    • Persistence: Do not remove previous selections. All selected cells must remain visible.
    • Uniqueness: Do not select the same cell twice. Ensure the selection loop continues until a unique cell is found.
  4. Termination: Display an alert or message when all cells have been selected.
  5. Visualization: Mark selected cells clearly (e.g., with an 'X' or specific color).
  6. Labeling: Display numeric labels for rows and columns to identify cell coordinates.
  7. Rendering: Use the default P2D renderer to ensure text labels render correctly (avoid WEBGL if text alignment is an issue).

Anti-Patterns

  • Do not clear the grid or remove previous marks when a new selection is made.
  • Do not allow the same cell to be selected more than once.
  • Do not use WEBGL mode if it interferes with text rendering for labels.

Triggers

  • p5.js random grid selector
  • random cell picker without replacement
  • grid with row and column numbers
  • accumulate random selections p5.js
  • unique random grid generator

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.