/** * @author Kevin Thackorie (see LICENCE in repository for licence information) */ echo '<style type="text/css"> .participant_0 { color: #ce0b49; } .participant_1 { color: #23aac5; } </style>'; $argument = new Argument(); while (true) { if ($participant0Check = $argument->go('0')) { $argument->say('0', '...'); $argument->say('1', 'Ha! I got you.'); break; } if ($participant1Check = $argument->go('1')) { $argument->say('1', '...'); $argument->say('0', 'Ha! I got you.'); break; } } class Argument { private $words = array('buddy', 'guy', 'friend', 'pal'); private $participants = array('terrance', 'phillip'); private $lastWord = ''; private $participant0History = array();