<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyoromo</author_name>
  <author_url>https://blog.hatena.ne.jp/hyoromo/</author_url>
  <blog_title>hyoromoのブログ</blog_title>
  <blog_url>https://hyoromo.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby1.8.7</anon>
  </categories>
  <description>前回から日にちが空きましたが、とりあえず一通り参考書は読み終えました。 そこで、練習プログラムの定番である『じゃんけんゲーム』を組んでみようと思います。内容は 0=グー,1=チョキ,2=パー の中からどれかを入力するだけ。 #! /usr/bin/ruby WIN_MESSAGE = &quot;YOU WIN&quot; LOST_MESSAGE = &quot;YOU LOST&quot; DOWR_MESSAGE = &quot;DRAW&quot; def judge_janken (player, cpu) te_h = {0 =&gt; &quot;グー&quot; , 1 =&gt; &quot;チョキ&quot;, 2 =&gt; &quot;パー&quot;} case player when 0 case c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20081211%2F1229006075&quot; title=&quot;じゃんけんゲーム - hyoromoのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-11 23:34:35</published>
  <title>じゃんけんゲーム</title>
  <type>rich</type>
  <url>https://hyoromo.hatenablog.com/entry/20081211/1229006075</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
