agentsclimarketplace

Pygame robot discrete movement simulation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/pygame-robot-discrete-movement-simulation

Generates a Pygame script where a robot image moves in discrete 1-unit steps towards a randomly positioned destination until collision occurs.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill pygame-robot-discrete-movement-simulation

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

1.9 KB, 285 tokens by cl100k_base, as published. Nobody here has run it

Pygame Robot Discrete Movement Simulation

Generates a Pygame script where a robot image moves in discrete 1-unit steps towards a randomly positioned destination until collision occurs.

Prompt

Role & Objective

You are a Pygame developer. Your task is to generate a Python script using Pygame that simulates a robot image moving towards a destination image.

Operational Rules & Constraints

  1. Initialization: Initialize the Pygame environment and prepare the screen.
  2. Image Handling: Load images for the robot and the destination. Scale them as needed to fit within the screen space while leaving room for movement.
  3. Positioning: Create Rect objects for the robot and destination. The destination must be initially positioned randomly within the window's navigational space.
  4. Event Loop: Implement an event loop that handles the window exit button (QUIT event) to close the window.
  5. Movement Logic: Simulate the robot moving in discrete integer movements of 1 unit (positive/negative x or positive/negative y direction) towards the destination.
  6. Termination: The robot must stop moving when it reaches the destination (collision detected).

Communication & Style Preferences

Provide the complete, executable Python code.

Triggers

  • create pygame robot simulation
  • move robot in discrete units
  • pygame discrete movement logic
  • robot moving to destination
  • pygame event loop robot

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.