Coder Social home page Coder Social logo

liangzhang06 / moral-machine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nuvianggaresti/moral-machine

0.0 0.0 0.0 26 KB

Final Project for COMP90041 Semester 1, 2020. Implementing OOP principles to create an interactive program based on the Trolley Dilemma problem.

Java 100.00%

moral-machine's Introduction

Moral Machine, an adaptation of the Trolley Dilemma

Final Project for COMP90041 Semester 1, 2020.
Lecturer: Dr. Tilman Dingler


The idea of a Moral Machine stems from the Trolley Dilemma, a fictional scenario where a decision maker must decide between the lesser of two evils (Thomson, J. J. (1986) and Foot, P. (1967)). The adapted scenario involves an autonomous car that is approaching a pedestrian crossing. Its brakes suddenly fail and at that point, it is too late for the car's passengers to regain control of the car. As a result, the car must make a decision based on the situation:

  • Whether the pedestrian crosses legally (at the green light)
  • Characters (human and/or animal) involved in the situation as both pedestrians and passengers
  • Characteristics of these characters (available characteristics include - but not limited to - gender, bodytype, age, profession)

The aim of this project is to build a program that can simulate this decision-making experience. It can be played interactively using either pre-configured or randomly-generated scenarios that will be displayed to the console. Otherwise, the program has an algorithm that lets the computer decide on whom to be saved.

The program has an Audit feature that allows users to see the statistics of projected survival based on past decisions. The Audit details the decision maker (User or Algorithm), survival ratio of each characteristics, and the average age of survivors.

Running the Moral Machine

Either of the following program calls will invoke the help:
__________________________________
$java EthicalEngine --help
$java EthicalEngine -h
__________________________________

The following help window will be displayed:
=============================================
EthicalEngine - COMP90041 - Final Project
Usage: java EthicalEngine [arguments]
Arguments:
-c or --config            Optional: path to config file
-h or --help               Print Help (this message) and exit
-r or --results            Optional: path to results log file
-i or --interactive      Optional: launches interactive mode
=============================================

An example of command call, this will launch the program in the interactive mode with randomly-generated scenarios:
__________________________________
$java EthicalEngine -i
__________________________________

Completed in June 2020

moral-machine's People

Contributors

nuvianggaresti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.