Skip to main content
Prompts Balanced 7v7 Football Team Generator App Designer

developer coding template risk: low

Balanced 7v7 Football Team Generator App Designer

Act as an Application Designer to create a Windows application that inputs player names, strengths, fixed roles, and preferences to randomly assign balanced 7v7 football teams. Ens…

PROMPT

Act as an Application Designer. You are tasked with creating a Windows application for generating balanced 7v7 football teams. The application will:

- Allow input of player names and their strengths.
- Include fixed roles for certain players (e.g., goalkeepers, defenders).
- Randomly assign players to two teams ensuring balance in player strengths and roles.
- Consider specific preferences like always having two goalkeepers.

Rules:
- Ensure that the team assignments are sensible and balanced.
- Maintain the flexibility to update player strengths and roles.
- Provide a user-friendly interface for inputting player details and viewing team assignments.

Variables:
- ${playerNames}: List of player names
- ${playerStrengths}: Corresponding strengths for each player
- ${fixedRoles}: Pre-assigned roles for specific players
- ${teamPreferences:defaultPreferences}: Any additional team preferences

INPUTS

playerNames REQUIRED

List of player names

e.g. ["Alice", "Bob", "Charlie"]

playerStrengths REQUIRED

Corresponding strengths for each player

e.g. [85, 90, 78]

fixedRoles REQUIRED

Pre-assigned roles for specific players

e.g. {"Alice": "goalkeeper", "Bob": "defender"}

teamPreferences

Any additional team preferences

e.g. {"always_two_gk": true}

ROLES & RULES

Role assignments

  • Act as an Application Designer.
  1. Ensure that the team assignments are sensible and balanced.
  2. Maintain the flexibility to update player strengths and roles.
  3. Provide a user-friendly interface for inputting player details and viewing team assignments.

EXPECTED OUTPUT

Format
markdown
Constraints
  • user-friendly interface description
  • team balancing logic
  • flexible updates

SUCCESS CRITERIA

  • Allow input of player names and strengths.
  • Include fixed roles for certain players.
  • Randomly assign players to two teams ensuring balance in strengths and roles.
  • Consider specific preferences like always having two goalkeepers.

FAILURE MODES

  • May generate unbalanced team assignments.
  • Might ignore fixed roles or preferences.
  • Could design inflexible interface for updates.
  • May not focus on Windows application specifics.

CAVEATS

Dependencies
  • Requires playerNames list.
  • Requires playerStrengths.
  • Requires fixedRoles.
  • Requires teamPreferences.
Missing context
  • Exact definition of 'balance' (metrics for strengths and roles).
  • Technology stack for Windows app (e.g., WPF, WinForms, C#).
  • Expected output format (e.g., code, wireframes, description).
  • Player count assumptions (14 total for 7v7?).
  • Example inputs and expected outputs.
Ambiguities
  • Unclear what 'creating a Windows application' entails (e.g., full code, design spec, UI mockups).
  • 'Balanced' not precisely defined (e.g., total strength equality, role parity).
  • teamPreferences variable has unclear syntax '${teamPreferences:defaultPreferences}'.

QUALITY

OVERALL
0.75
CLARITY
0.85
SPECIFICITY
0.65
REUSABILITY
0.90
COMPLETENESS
0.60

IMPROVEMENT SUGGESTIONS

  • Specify output deliverables: 'Output a design document with UI wireframes, pseudocode for balancing algorithm, and sample implementation.'
  • Define balance: 'Balance means total team strengths differ by <5% and roles are distributed evenly (e.g., 1 GK, 3 DEF, etc. per team).'
  • Clarify variables: Provide example values and standardize syntax.
  • Add constraints: 'Assume 14 players total, 2 fixed GKs.'
  • Include UI requirements: 'Use modern WPF interface with drag-and-drop for inputs.'

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER