【VRC】みんなでリバーシ【CPU対戦4段階・ヒント・全員同期・VR/デスクトップ対応・Blenderデータ付】
- ダウンロード商品¥ 1,000










VRChat のワールドに、緑の盤のリバーシ台を置けるギミックです。 操作盤で席について「スタート」を押せば対局開始。空いている席には CPU が入るので、ひとりでも遊べます。 CPU は、人工知能の教科書として有名な Peter Norvig『Paradigms of Artificial Intelligence Programming』のリバーシ対局プログラムを、1 手ずつ Udon に移植したもの。よわい から さいきょう まで 4 段階です。 パスも終局も自動で判定。迷ったら「ヒント」で、CPU がすすめるマスを光らせることもできます。 ■ このギミックでできること ◯ リバーシ台 1 台の一式:テーブル、緑の盤と石 64 枚、黒と白の操作盤、石の箱 2 つ、両面の得点ボード。 ◯ クリックで置くだけ:置けるマスには小さな点(表示・非表示を切りかえられます)。はさんだ石は、置いた石から外へ 1 列ずつ裏返ります。直前に置いた石には赤い点。 ◯ VR は手をかざしてグリップ:置きたいマスの上に手をかざすと半透明の石が出て、グリップで置けます。もちろんレーザーでも置けます。 ◯ ひとりでも CPU と対戦:よわい(1 手先)・ふつう(2 手先)・つよい(3 手先、辺の石の安定や打てる手の数まで見る「Iago」の考え方)・さいきょう(5 手先、残り 8 マスからは最後まで読み切り)。 ◯ 毎回ちがう序盤:CPU の最初の 1 手は 4 つのうちどれか。考える時間は 1 手 最大 10 秒で、ワールドが重くならないよう少しずつ計算します。 ◯ ヒント:自分の番に押すと、CPU「つよい」がすすめるマスが金色の輪で光ります。押した人の画面だけに出るので、対人戦でもこっそり使えます。 ◯ パス・終局・勝敗を自動判定:置ける所がない時は自動でパス。両方とも置けなくなったら石の数で勝敗を出します。投了もできます。 ◯ 待った:CPU 戦では、自分が最後に置いた手の前まで戻せます。 ◯ 得点ボード:両面に プレイヤー名と石の数(手番の側が金色)・手番・パス・結果と、最近 30 手の棋譜(1 f5 2 d6 …)。 ◯ 全員同期:石・点・印・得点ボード・効果音はワールドにいる全員で同じように見えます。途中から入った人にも今の局面が見えます。対局中にプレイヤーが抜けた時は CPU が代わりに打ちます。 ◯ 効果音 10 種:石を置く音・裏返る音・パス・対局開始・終局・ヒントなど。 ■ 付属するデータ ◯ VRChat ワールド向け unitypackage(プレハブ・サンプルシーン・スクリプト・効果音 10 種・Quest 用マテリアル) → 新規ワールドプロジェクトにインポートし、サンプルシーンを開くとすぐに遊べます。 ※ TextMesh Pro の Essential Resources を事前にインポートしてください(Window > TextMeshPro)。 ◯ Blender データ(全モデルの .blend と FBX、パレット) → テーブル・盤・石・操作盤の形と色を自由に改変できます。色は 16×16 のパレット画像 1 枚で管理しています。 ■ 大きさ・ポリゴン数の目安(1 台) ◯ テーブル 約 1.04m × 0.84m(盤面の高さ 約 0.76m)、得点ボードを含めた幅 約 1.8m・高さ 約 1.62m ◯ 盤が石でいっぱいの時で △約 28,700(石 1 枚 288・テーブルと盤と操作盤と石の箱と得点ボード 約 10,300)+ 文字 ◯ マテリアル 8 + 文字、テクスチャはパレット(16×16)・盤面(2048×2048)・印(8×8)・文字のアトラス。ライトなし ◯ 物理演算(Rigidbody)は使っていません ■ 調整できること(Inspector) 空いた席に CPU を入れるか、CPU が考えるいちばん短い/長い時間、CPU が 1 フレームに計算する時間、さいきょう が最後まで読み切りはじめる空きマスの数。 ■ 動作確認済みの環境 Unity 2022.3.22f1 / VRChat SDK 3.10.5(UdonSharp 同梱)/ Blender 5.2 LTS(.blend は 5.2 で保存。旧版の Blender では同梱の FBX をお使いください) 新規プロジェクトへインポートしたサンプルシーンで、置けるマス・裏返し・パス・終局の判定が元のプログラムと一致すること(60 局・3,598 手のすべての局面)・CPU の手と評価と読んだ局面の数が元のプログラムと一致すること(240 局面 × 3 段階)・最後まで読み切る探索が正確なこと(80 局面)・強い段階が弱い段階に勝つこと・クリックでの置き方・VR の手をかざして置く操作・パスと終局と勝敗・投了・待った・ヒント・置ける所の点・4 段階すべての CPU の応答時間・途中参加・見ている人の画面・プレイヤーが抜けた時の CPU の代わり を自動テストで確認しています。 ※ Quest/Android 向けのマテリアル(VRChat/Mobile シェーダー)も同梱しています。 ■ 利用規約 ◯ VRChat のワールドに組み込んで公開できます(有料・企業・イベント用ワールドも可)。報告・クレジット表記は不要です。 ◯ 改変は自由です。 ◯ データ本体・スクリプト・改変データの再配布や販売は禁止です(例: このギミックを同梱したワールドデータを BOOTH で販売する等)。 ◯ ワールドの外(ほかのゲームや映像作品など)で使う場合は事前にご相談ください。 ■ お問い合わせ 不具合やご不明な点は、BOOTH のメッセージからお気軽にご連絡ください。 ■ 制作について 3D モデル・テクスチャ・スクリプト・効果音は、制作者の指示のもとで AI アシスタントがコードとして生成し、制作者が調整・確認しています。 CPU の考え方と評価の表は Peter Norvig『Paradigms of Artificial Intelligence Programming』のリバーシ対局プログラム(Copyright (c) 2018 Peter Norvig、MIT License)を移植したものです(ライセンス文を同梱しています)。 フォントは Zen Maru Gothic(SIL Open Font License 1.1)を同梱しています。 ■ 更新履歴 v1.0 初版 ―――――――――――――――――――― [English] A reversi table with a green board for VRChat worlds (UdonSharp), with a CPU opponent. Take a seat on a console and press START. An empty seat is played by the CPU, so you can play alone. The CPU is a move-for-move port of the reversi program from Peter Norvig's "Paradigms of Artificial Intelligence Programming", at four levels. Passes and the end of the game are judged automatically, and a hint button lights up the square the CPU would choose. - A full set: a table, the board and 64 discs, a console for black and for white, two disc trays, a two-faced score stand (table about 1.04 x 0.84 m; about 1.8 m wide and 1.62 m tall with the stand) - Click a square to place a disc: legal squares are dotted (can be turned off), and the captured discs turn over row by row outward from the new one - In VR, hold your hand over a square (a see-through disc shows there) and grip; the laser works too - A CPU opponent with four levels: weak (one move ahead), normal (two), strong (three, with Iago's edge stability and mobility), strongest (five, and a perfect endgame from 8 empty squares); it thinks up to 10 s a move, a little each frame so the world never stutters - A hint button (shown only to the player who pressed it), automatic passes, the final count, resign, and take-back against the CPU - A score stand showing the players, the disc counts, the turn, passes, the result and the last 30 moves - Synced for everyone; late joiners see the game as it is; a player who leaves is replaced by the CPU - 10 sound effects; a sample scene, Quest / Android materials (VRChat Mobile shaders) and the Blender source files (.blend + FBX) - Tested in a fresh project: Unity 2022.3.22f1 / VRChat SDK 3.10.5. Please import TextMesh Pro Essential Resources first. Questions or problems: please contact us via BOOTH messages. License: free to use in any VRChat world (commercial use OK, no credit needed). Redistribution or resale of the data, modified or not, is prohibited. Made with the help of an AI assistant (models, textures, scripts and sound effects generated as code, then checked and adjusted by the author). The CPU is a port of the reversi program in Peter Norvig's "Paradigms of Artificial Intelligence Programming" (Copyright (c) 2018 Peter Norvig, MIT License; license included). Font: Zen Maru Gothic (SIL OFL 1.1).
利用規約
◯ VRChat のワールドに組み込んで公開できます(有料・企業・イベント用ワールドも可)。報告・クレジット表記は不要です。 ◯ 改変は自由です。 ◯ データ本体・スクリプト・改変データの再配布や販売は禁止です(例: このギミックを同梱したワールドデータを BOOTH で販売する等)。 ◯ ワールドの外(ほかのゲームや映像作品など)で使う場合は事前にご相談ください。 [English] Free to use in any VRChat world (commercial use OK, no credit needed). Redistribution or resale of the data, modified or not, is prohibited.
更新履歴
v1.0(2026/10/06) 初版










