Skip to content

Instantly share code, notes, and snippets.

@yuya-takeyama
Created October 17, 2012 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yuya-takeyama/3904089 to your computer and use it in GitHub Desktop.
Save yuya-takeyama/3904089 to your computer and use it in GitHub Desktop.
会話できる人工知能のプログラム (PHP)
<?php
$words = ['マジで', 'ヤバい', 'ウケルー'];
while (fgets(STDIN) !== "\n") echo $words[array_rand($words)], PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment