There’s a good essay in Prospect covering the trolley problem in philosophy, and variations. For better or worse, every philosophy student should be aware of it as a thought experiment. It will alter how you look at other people as you wait for the train to arrive….