#!/usr/bin/python
# coding: utf-8

"""
Les Deux
Nick Montfort
Traduction de l'americain par Serge Bouchardon

Copyright 2010-2015 Nick Montfort and Serge Bouchardon

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.

Version JavaScript: http://nickm.com/2/les_deux.html
29 juillet 2018: Compatibilité avec Python 2/3 en ajoutant des parenthèses
"""

from random import choice
from time import sleep

commencement = [
"L’agent de police s’approche de l’automobiliste",
"Le procureur regarde l’agresseur",
"L’anesthésiste se tourne vers le médecin",
"L’élève frappe à la porte du professeur",
"L’éclairagiste s’avance vers l’équilibriste",
"L’entraîneur s’adresse à l’haltérophile",
"L’économiste interpelle l’entrepreneur"
]

verbe = [
"sermonne",
"conseille",
"congratule",
"réconforte",
"prend dans ses bras",
"frappe",
"rudoie",
"félicite",
"défie",
"rejette"
]

fin = [
"Ils se sentent mieux après avoir pleuré",
"Ils prient ensemble",
"Ils attendent en silence",
"Ils éclatent de rire",
"L'impolitesse entraîne l'impolitesse",
"L'un des deux voit son espoir brisé",
"Six ans après, ni l’un ni l’autre ne se souvient de l’incident",
"Le plus puissant l’emporte",
"Le plus faible a le dessus",
"Chacun a appris quelque chose"
]

while True:
    print('\n' + choice(commencement) + '.\n' +
    choice(['Il', 'Elle']) + ' ' + choice(['la', 'le']) + ' ' +
    choice(verbe) + '.\n' + choice(fin) + '.')
    sleep(4)
