一句话:提出城市建造游戏 Ethicode City,将软件工程伦理困境游戏化,初步评估显示能提升学生伦理推理能力。
软件与AI渗透医疗、金融、交通,AI辅助编码和“vibe coding”常缺乏验证,易引入缺陷与安全漏洞。然而软件工程伦理多通过讲座或案例教学,学习者缺少真实伦理困境体验。作者设计教育游戏 Ethicode City,将城市建造与软件工程伦理抉择结合,如选择AI辅助还是手工编码、权衡效率与安全、维护质量与文档,覆盖隐私、偏见之外的广泛职业伦理。对8名本科生的初步评估表明,游戏能有效增强伦理推理、批判性思维与决策能力,游戏已开源。
Software and AI are now pervasive across domains such as healthcare, finance, and transportation, with AI increasingly used for code generation and debugging. This has led to practices such as vibe coding, where developers prompt AI to write code and lightly edit it, often with limited verification, which can introduce subtle bugs or security flaws. Despite its importance, software engineering ethics is often taught via lectures or case studies, limiting learners’ exposure to realistic ethical dilemmas. We present Ethicode City, an educational game that immerses players in city-building while facing software engineering dilemmas, such as choosing between AI-assisted or manual coding, balancing efficiency with security, and maintaining quality and documentation. Unlike prior tools focused narrowly on privacy or bias, the game covers a broad spectrum of professional ethics, fostering ethical awareness, critical thinking, and decision-making. Preliminary evaluations with 8 undergraduate students indicate that Ethicode City effectively enhances ethical reasoning. The game is available at https://github.com/rishalab/EthicodeCity.