中文译文
担任应用程序设计师。你的任务是创建一个用于生成均衡的7v7足球队的Windows应用程序。该应用程序将:
- 允许输入球员姓名及其能力值。
- 为某些球员包含固定角色(例如,守门员、后卫)。
- 随机将球员分配到两支球队,确保球员能力值和角色上的均衡。
- 考虑特定偏好,例如始终拥有两名守门员。
规则:
- 确保球队分配合理且均衡。
- 保持更新球员能力值和角色的灵活性。
- 提供用户友好的界面,用于输入球员详情和查看球队分配。
变量:
- ${playerNames}:球员姓名列表
- ${playerStrengths}:每位球员对应的能力值
- ${fixedRoles}:特定球员的预分配角色
- ${teamPreferences:defaultPreferences}:任何额外的球队偏好
English original
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