Abstract
FeynGame is a Java-based graphical tool designed to streamline the creation of high-quality Feynman diagrams for professional publications and educational purposes. Unlike traditional vector drawing tools, FeynGame functions as a "physics-aware" engine that validates diagrams against specific particle physics models. It includes a built-in game mode to assist students in mastering the logic of particle interactions, bridging the gap between complex LaTeX-based packages and basic graphical editors.
1. Introduction
In the field of particle physics, Feynman diagrams serve as the universal language for describing subatomic interactions. However, researchers often face a trade-off when generating these diagrams. Text-based LaTeX packages, such as TikZ-Feynman, produce high-quality results but involve steep learning curves and slow iteration cycles. Conversely, basic graphical editors lack an understanding of the underlying physics, leading to potential errors in diagram topology.
FeynGame addresses this need by providing a tool that is fast enough for rapid presentation drafting, precise enough for journal submission, and interactive enough to serve as a pedagogical aid.
2. Technical Architecture and Features
FeynGame is built on a model-based architecture. Rather than drawing arbitrary lines, users select "particles" defined in a model file (e.g., $W$ bosons, quarks, or gluons). This object-oriented approach allows the software to treat diagrams as data rather than mere pixels.
Key technical features include:
- Automatic Line Splitting: When a user connects a new particle line to the center of an existing one, the software automatically generates a vertex and splits the original line. This feature significantly accelerates the construction of complex loop diagrams.
- Physics Validation: The software cross-references the user’s diagram with a list of "allowed" vertices defined in the model file. If an impossible interaction is drawn (e.g., a vertex prohibited by the Standard Model), the tool flags the error.
- Intuitive Geometry Control: Users can adjust line curvature via "mouse-wheel curving" and ensure professional alignment through "angle clipping," which snaps lines to multiples of $\pi/2$ or $\pi/4$.
- The "InFin" Game Mode: This dedicated mode challenges users to construct valid, connected Feynman diagrams given a set of initial and final state particles, gamifying the learning of theoretical physics.
3. Physics Models and Customization
FeynGame relies on Model Files to encode the rules of particle physics. The software comes pre-loaded with several models:
- Standard Model (SM): Comprehensive rules for quarks, leptons, and gauge bosons.
- EW2gen: A simplified model focusing on the first two generations of the electro-weak sector.
- Custom Models: Users can define their own particles and vertex rules using a simple ASCII format, allowing for the exploration of Beyond the Standard Model (BSM) physics.
4. Results and Utility
FeynGame demonstrates high efficiency, allowing users to produce professional-grade diagrams in seconds. The tool successfully identifies incorrect topologies, such as invalid muon decay paths, by reporting specific vertex mismatches.
Key utility features include:
- Portability: Diagrams can be exported as transparent PNGs for presentations or as PDFs with automatic bounding boxes for seamless LaTeX integration.
- Robust History: A 1,000-step history management system ensures session persistence and easy undo/redo functionality.
5. Conclusion and Future Work
While FeynGame offers a powerful interface, the authors identify several areas for future development. Current limitations include the lack of native LaTeX rendering for labels within the GUI and the need for better interoperability with text-based formats like TikZ-Feynman. Future versions may also include more diverse game modes, such as a "Scrabble-type" diagram builder, and automated level generation directly from physics model files.
Summary updated