From: Simon Strandgaard Date: 2005-01-23T22:32:34+09:00 Subject: Re: [QUIZ] Paper Rock Scissors (#16) In the bottom of this mail are my 7 bots. 2 of them ne_cont_rand.rb and ne_cont_queue.rb uses continuations, so its probably best to discard them. -- Simon Strandgaard #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2.1). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 2005-01-23 15:41 CET by . # Source directory was `/home/neoneye/code/quiz/rock_scissor_paper'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 555 -rw-r--r-- players/ne_queue.rb # 707 -rw-r--r-- players/ne_rand.rb # 1786 -rw-r--r-- players/ne_antibias.rb # 1397 -rw-r--r-- players/ne_treshold.rb # 1642 -rw-r--r-- players/ne_stupid.rb # 400 -rw-r--r-- players/ne_cont_queue.rb # 303 -rw-r--r-- players/ne_cont_rand.rb # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"' elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"' elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then shar_touch='touch -am $3$4$5$6$2 "$8"' else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch # if mkdir _sh06382; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= players/ne_queue.rb ============== if test ! -d 'players'; then $echo 'x -' 'creating directory' 'players' mkdir 'players' fi if test -f 'players/ne_queue.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_queue.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_queue.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_queue.rb M8VQA"`]/2!1545512YS:7IE#0H)"6-H /;VEC90T*"65N9`T*96YD ` end SHAR_EOF (set 20 05 01 23 15 39 04 'players/ne_queue.rb'; eval "$shar_touch") && chmod 0644 'players/ne_queue.rb' || $echo 'restore of' 'players/ne_queue.rb' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_queue.rb:' 'MD5 check failed' 3259093536e9765638990620064d3bc5 players/ne_queue.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_queue.rb'`" test 555 -eq "$shar_count" || $echo 'players/ne_queue.rb:' 'original size' '555,' 'current size' "$shar_count!" fi fi # ============= players/ne_rand.rb ============== if test -f 'players/ne_rand.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_rand.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_rand.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_rand.rb M8VQA"`](#`-"@D)0&AI M"`K(%%5155%+G-I>F4@*R`Q("T@"`]("A`:6YD97@@*R!B970I("4@455%544N%T-"@D)=VAE;B`Z=VEN#0H)"0EB970@/2`H"`]("A`:6YD97@@*R!B M970I("4@455%544N%T-"@D) M96YD#0H)"3IR;V-K#0H)96YD#0H)"0T*"61E9B!R97-U;'0H('EO=2P@=&AE M;2P@=VEN7VQO&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_rand.rb:' 'MD5 check failed' 9df2864007f62d8a563f0780128fd754 players/ne_rand.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_rand.rb'`" test 707 -eq "$shar_count" || $echo 'players/ne_rand.rb:' 'original size' '707,' 'current size' "$shar_count!" fi fi # ============= players/ne_antibias.rb ============== if test -f 'players/ne_antibias.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_antibias.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_antibias.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_antibias.rb M8VQA65R#0H)455%544@/2!;(#IS M8VESF4H(&]P M<&]N96YT("D-"@D)6]U#0H) M"0EE;F0-"@D)96YD#0H)"0T*"0DC(#-R9"!S=')A=&5G>3H@=VAA="!H87!P M96YE9`T*"0EI9B!`8V]U;G0@/3T@*'%S*C(I*S$-"@D)"2-P=71S(")S=&%T M=7,Q.B!W:6X](WM`=VEN+G-I>F5]("(@*PT*"0D)(PDB9')A=STC>T!DF5](&QO6]U+"!T M:&5M+"!W;&0@/2!`:&ES=&]R>2YL87-T#0H)"6-H;VEC92`](&-A6]U+"!T:&5M70T*"0EE;F0-"@D)0&AI&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_antibias.rb:' 'MD5 check failed' 5e97bc2a6069f46ca39e44c12f0f442e players/ne_antibias.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_antibias.rb'`" test 1786 -eq "$shar_count" || $echo 'players/ne_antibias.rb:' 'original size' '1786,' 'current size' "$shar_count!" fi fi # ============= players/ne_treshold.rb ============== if test -f 'players/ne_treshold.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_treshold.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_treshold.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_treshold.rb M8VQA"`](#`-"@D)0&AI2(-"@D)"4!L979E;#$@/2`X,`T*"0D) M0&QE=F5L,B`](#DU#0H)"65N9`T*"0E`8V]U;G0@*ST@,0T*"0ES96YD*$!S M=')A=&5G>2D-"@EE;F0-"@D)#0H)9&5F(&-H;V]S95]R86YD;VT-"@D)6]U+"!T:&5M M+"!W;&0@/2!`:&ES=&]R>2YL87-T#0H)"6-A"`]("A`:6YD97@@*R!1545512YS:7IE("L@,2`M(')A M;F0H,BDI("4@455%544N%T- M"@D)=VAE;B`Z;&]S90T*"0D)8F5T(#T@*')A;F0H,3`P*2`^($!L979E;#$I M(#\@,"`Z(#$-"@D)"4!I;F1E>"`]("A`:6YD97@@*R!B970I("4@455%544N M%T-"@D)=VAE;B`Z=VEN#0H) M"0EB970@/2`H"`K(&)E="D@)2!1545512YS:7IE#0H)"0ER971U"`]("A`:6YD97@@*R`Q*2`E(%%5155% M+G-I>F4-"@D)%T-"@EE;F0-"@D)#0H)9&5F M(')E6]U+"!T:&5M+"!W:6Y?;&]S95]O&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_treshold.rb:' 'MD5 check failed' 4421a31f3a80c43e74d69bbc4b513020 players/ne_treshold.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_treshold.rb'`" test 1397 -eq "$shar_count" || $echo 'players/ne_treshold.rb:' 'original size' '1397,' 'current size' "$shar_count!" fi fi # ============= players/ne_stupid.rb ============== if test -f 'players/ne_stupid.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_stupid.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_stupid.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_stupid.rb M8VQAF4-"@EE;F0-"@ED968@<75E=64H M:2D-"@D)455%545;:2`E(%%5155%+G-I>F5=#0H)96YD#0H)9&5F(&-H86YC M92AL979E;"P@82P@8BD-"@D)*')A;F0H,3`P*2`\(&QE=F5L*2`_(&$@.B!B M#0H)96YD#0H)9&5F(&-H;V]S90T*"0E`8V]U;G0@*ST@,0T*"0D-"@D)(R`Q M2!A;&P@8V]M8FEN871I;VYS#0H)"7)E='5R;B!Q M=65U92A`8V]U;G0M,2D@:68@0&-O=6YT(#P]('%S#0H)"0T*"0DC(#)N9"!S M=')A=&5G>3H@<&QA>2!O;B!T:&]S92!W:&5R92!W92!W;VX-"@D):68@0&-O M=6YT(#P]('%S*C(-"@D)"7EO=2P@=&AE;2P@=VQD(#T@0&AIT!W:6XNT!L;W-E+G-I>F5](@T*"0EE;F0-"@T*"0EI9B!`8V]U;G0@/#T@ M<7,J,PT*"0D)>6]U+"!T:&5M+"!W;&0@/2!`:&ES=&]R>5M`8V]U;G0@+2!Q M6]U#0H)"0EE;F0-"@D)96YD M#0H)"0T*"0EI9B!`8V]U;G0@/3T@*'%S*C,I*S$-"@D)"2-P=71S(")S=&%T M=7,R.B!W:6X](WM`=VEN+G-I>F5]("(@*PT*"0D)(PDB9')A=STC>T!DF5](&QO6]U+"!T M:&5M+"!W;&0@/2!`:&ES=&]R>2YL87-T#0H)"6-H;VEC92`](&-A6]U+"!T M:&5M70T*"0EE;F0-"@D)0&AI&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_stupid.rb:' 'MD5 check failed' d0b6e5c0c587ee049f83b845a9ffc6d5 players/ne_stupid.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_stupid.rb'`" test 1642 -eq "$shar_count" || $echo 'players/ne_stupid.rb:' 'original size' '1642,' 'current size' "$shar_count!" fi fi # ============= players/ne_cont_queue.rb ============== if test -f 'players/ne_cont_queue.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_cont_queue.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_cont_queue.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_cont_queue.rb M8VQAF4H(&]P<&]N96YT("D-"@D)F4I70T*"0E1545515M`:6YD97A=#0H)96YD#0H)9&5F(')E6]U+"!T:&5M+"!W:6Y?;&]S95]O&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_cont_queue.rb:' 'MD5 check failed' 6a81061c36cfd276a19c7b514b762360 players/ne_cont_queue.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_cont_queue.rb'`" test 400 -eq "$shar_count" || $echo 'players/ne_cont_queue.rb:' 'original size' '400,' 'current size' "$shar_count!" fi fi # ============= players/ne_cont_rand.rb ============== if test -f 'players/ne_cont_rand.rb' && test "$first_param" != -c; then $echo 'x -' SKIPPING 'players/ne_cont_rand.rb' '(file already exists)' else $echo 'x -' extracting 'players/ne_cont_rand.rb' '(binary)' sed 's/^X//' << 'SHAR_EOF' | uudecode && begin 600 players/ne_cont_rand.rb M8VQA65R#0H)455%544@/2!;(#IR M;V-K+"`ZF4H(&]P M<&]N96YT("D-"@D)WQ`&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo 'players/ne_cont_rand.rb:' 'MD5 check failed' b58dc408275f688d35443ec344b92f83 players/ne_cont_rand.rb SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'players/ne_cont_rand.rb'`" test 303 -eq "$shar_count" || $echo 'players/ne_cont_rand.rb:' 'original size' '303,' 'current size' "$shar_count!" fi fi rm -fr _sh06382 exit 0