marghetis-lab/empirica-docs icon
public
Published on 4/24/2025
marghetis-lab/empirica-docs

Empirica documentation

Rules

Build & Development Commands

  • Always use React syntax
  • Frequently check the React and Empirica docs even when not directed to
  • Avoid prop drilling

Testing Guidelines

  • Check to make sure all functions you reference are real Empirica functions using the Empirica documentation. - Make sure to use standard syntax

Code Style & Guidelines

  • For player variables that change across rounds dynamically (e.g., wealth), make sure you adjust the wealth at the player level (not at the player.round level or any other level) - Use React hooks and React context.

Documentation Guidelines

  • Never, ever return a full script with all errors fixed. Instead, only ever return smaller code blocks and direct the user to where they need to make the changes in their script.