religions Article Writing a Moral Code: Algorithms for Ethical Reasoning by Humans and Machines James McGrath 1,* ID and Ankur Gupta 2 1 Butler University, Department of Philosophy, Religion, and Classics, 4600 Sunset Avenue, Indianapolis, IN 46208, USA 2 Butler University, Department of Computer Science, 600 Sunset Avenue, Indianapolis, IN 46208, USA;
[email protected] * Correspondence:
[email protected]; Tel.: +1-317-940-9364 Received: 31 July 2018; Accepted: 7 August 2018; Published: 9 August 2018 Abstract: The moral and ethical challenges of living in community pertain not only to the intersection of human beings one with another, but also our interactions with our machine creations. This article explores the philosophical and theological framework for reasoning and decision-making through the lens of science fiction, religion, and artificial intelligence (both real and imagined). In comparing the programming of autonomous machines with human ethical deliberation, we discover that both depend on a concrete ordering of priorities derived from a clearly defined value system. Keywords: ethics; Isaac Asimov; Jesus; Confucius; Socrates; Euthyphro; commandments; robots; artificial intelligence; programming; driverless cars 1. Introduction Ethical reasoning, when it is done effectively, involves prioritizing between competing options. Philosophical thought experiments such as the “trolley problem” highlight the human tendency to avoid making decisions about situations in which there is no good outcome. However, the history of both religion