<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yoshitaka-0922</author_name>
  <author_url>https://blog.hatena.ne.jp/Yoshitaka-0922/</author_url>
  <blog_title>よしたかの日常</blog_title>
  <blog_url>https://www.ktgw.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>開発</anon>
  </categories>
  <description>おはこんばんにちは！ 前回 に続いて、Rustで作ったババ抜きについて書いて行こうかなと。 前回 は、引かれた位置の履歴を使ってジョーカーを隠す CPU の話を書きました。 今回は 山札の切り方 と CPU 難易度の設計 について。 Rust の勉強がてら作っている old_maid では、 rand の shuffle 一発ではなく、実際のトランプの切り方に近い処理 を組み合わせています。 さらに CPU ごとに「どの切り方を何回やるか」を変えて、難易度の個性を出しています。 リポジトリ: yoshitaka-k/old_maid 起動: cargo run ▲ 配札前の Deck setu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.ktgw.jp%2Fentry%2F2026%2F06%2F15%2F060000&quot; title=&quot;Rust でババ抜き — シャッフルと CPU 難易度設計 - よしたかの日常&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>https://cdn-ak.f.st-hatena.com/images/fotolife/Y/Yoshitaka-0922/20260607/20260607121221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-15 06:00:00</published>
  <title>Rust でババ抜き — シャッフルと CPU 難易度設計</title>
  <type>rich</type>
  <url>https://www.ktgw.jp/entry/2026/06/15/060000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
