<?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 の勉強がてら、ターミナルで遊べるトランプゲームを作っています。 今回は、初めに作ってみたババ抜き（Old Maid）について書いて行こうと思います。 ババ抜きについて、ゲームエンジンや描画より先に「CPU がどう考えるか」から手を入れた結果、 引かれた位置の履歴を記録してジョーカーを隠すという、ちょっと面白い仕組みができました。 その設計の考え方と Rust での実装を紹介して行こうかなと。 リポジトリ: yoshitaka-k/old_maid 起動: cargo run ▲ cargo run 直後。FIGlet の「Old Maid」タイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.ktgw.jp%2Fentry%2F2026%2F06%2F08%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/20260607120607.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-08 06:00:00</published>
  <title>Rust でババ抜きを作ったら、履歴ベースの心理戦 CPU になった</title>
  <type>rich</type>
  <url>https://www.ktgw.jp/entry/2026/06/08/060000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
