LoginSignup
0
0

More than 5 years have passed since last update.

俺もズンドコキヨシやってみた

Posted at

zundoko.pl
use strict;
use warnings;
use IO::Handle;
STDOUT->autoflush(1);

my ($zun, $doko) = ('ズン', 'ドコ');
my $zzzzdoko = $zun x 4 . $doko;

my @target;
while(join('', @target) ne $zzzzdoko) {
    sleep(1);
    shift @target if (4 < scalar @target);

    push(@target, ($zun, $doko)[int(rand(10)) % 2]);
    print $target[-1], ' ';
}

print "\nキ・ヨ・シ!\n";

何番煎じだよって話だけど、今日は雨降ってて仕事やる気でなくて気分転換で作った。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0