【VRC】みんなで麻雀 全自動麻雀卓 4人打ち【CPU対戦・役と点数を自動計算・手牌は自分だけ・全員同期・Blenderデータ付】
- Digital2,000 JPY










VRChat のワールドに、4 人で打てる全自動麻雀卓を置けるギミックです。 席の「参加」を押して設定パネルの「開始」を押せば、山を積んでサイコロを振り、配牌まで自動。1 人でも、空いた席には CPU が入ります。 役・符・点数はあがった瞬間に自動計算。リーチ・鳴き・フリテン・流局まで、オンライン麻雀に近い一般的なルールで進みます。 自分の手牌は自分の画面でだけ表向き。はじめての人にも分かるように、テンパイを保てる牌に印を付け、待ち牌を表示するヒントがあります。 ■ このギミックでできること ◯ 全自動卓の一式:卓・イス 4 脚・席ごとの操作盤・136 枚の牌(赤ドラ 3 枚)・サイコロ・点棒・設定パネル・役の一覧ボード。 ◯ 本格ルール:リーチ・一発・ツモ・ドラ(カンドラ・裏ドラ・赤ドラ)・ポン・チー・カン(暗槓・明槓・加槓・槍槓)・フリテン・喰い替えなし・包(パオ)・ダブロン・流し満貫・途中流局(九種九牌・四風連打・四家立直・四槓散了・三家和)・テンパイ料・連荘と本場・供託・南入/西入・飛び終了。 ◯ 役と点数を自動計算:1 翻から役満まで一般的な役すべてと、ダブル役満・数え役満。高い方の読み方を自動で選び、「平和 断幺九 2翻30符 2000点」のように表示します。役と点数の計算は、麻雀の研究用ライブラリと 2 万通り以上の手で結果を照らし合わせています。 ◯ CPU 対戦:空いた席には CPU が入ります。CPU は牌効率を考えて打ち、リーチ者がいる時は安全な牌も考えます。対局中でも CPU の席に「交代」で次の局から入れます。 ◯ 手牌は自分だけ:自分の手牌は自分の画面でだけ表向き。手牌と「鳴けるかどうか」のデータは、その人と進行役の PC だけが知っている鍵で隠して送るので、ほかの人の PC に届くデータからは分かりません。山と CPU の手牌は進行役の PC の外へ出ません。 ◯ かんたん操作:捨てたい牌をクリックするだけ。ツモ・リーチ・カン・ロン・ポン・チー・パスは、できる時だけ手牌の上にボタンが出ます。チーやカンの組み合わせが複数ある時は牌の組を選べます。 ◯ ヒント:テンパイを保てる牌に印、操作盤に待ち牌とフリテンを表示(自分の画面だけで切りかえ)。 ◯ 卓の演出:牌が山から手元へ動いて配られ、サイコロが転がり、ドラ表示牌がめくれます。リーチの牌は横向き、点棒が出て、鳴いた牌は右に並びます。中央の窓に各自の風と点数、番の人の側が光ります。 ◯ 設定パネル:東風戦/半荘戦、赤ドラ、喰いタン、考える時間(15〜120 秒)、空席を CPU で埋めるか、ヒント、開始、終了(2 回押し)。 ◯ 時間切れも安心:考える時間を過ぎると引いた牌をそのまま捨てます。2 回続くと「おまかせ中」になり、CPU が代わりに打ちます。インスタンスから抜けた人の席は CPU が引き継ぎます。 ◯ 途中から入った人にも、卓の今の様子(捨て牌・鳴き・ドラ・点数)が同じように見えます。 ◯ 効果音つき:打牌・ツモ・洗牌・山の積み上げ・サイコロ・ドラ・鳴き・リーチ・ロン・ツモあがり・あがりの音楽・役満・流局など 24 種。 ■ 付属するデータ ◯ VRChat ワールド向け unitypackage(プレハブ・サンプルシーン・スクリプト・効果音 24 種) → 新規ワールドプロジェクトにインポートし、サンプルシーンを開くとすぐに遊べます。 ※ TextMesh Pro の Essential Resources を事前にインポートしてください(Window > TextMeshPro)。 ◯ Blender データ(全モデルの .blend と FBX、パレットテクスチャ、牌とラシャの絵) → 形・色を自由に改変できます。色は 16×16 のパレット画像 1 枚で管理しています。 ■ 大きさ・ポリゴン数の目安(1 卓) ◯ 卓 約 1.03m 四方・高さ 約 74cm。イス・設定パネル・役の一覧ボードを含めて 約 2.4m 四方、高さ 約 1.8m(ボード) ◯ 卓・イス・操作盤・パネル・ボード △約 12,200 + 牌(1 枚 △96)。対局中の全体で △約 26,800(ボタン・文字を含む) ◯ マテリアル 9 + 文字 2、テクスチャはパレット(16×16)・牌(2048×2048)・ラシャ(1024×1024)・文字のアトラス。ライト・物理演算なし ■ 調整できること(Inspector) 設定パネルを押せる人(席の人だけ/だれでも)、考える時間の選択肢。 ■ 動作確認済みの環境 Unity 2022.3.22f1 / VRChat SDK 3.10.5(UdonSharp 同梱)/ Blender 5.2 LTS(.blend は 5.2 で保存。旧版の Blender では同梱の FBX をお使いください) 新規プロジェクトへインポートしたサンプルシーンで、役と点数(研究用ライブラリと 2 万通り・シャンテン 7 万通り・待ち 2 万通りを照合し、そのうち 7,000 通りはワールドで動く形のプログラムで照合)・配牌と山・リーチと一発と裏ドラ・ツモの支払いと本場・天和・ダブロンと三家和・ポンとチーの優先と喰い替え・槍槓・暗槓とカンドラと嶺上・フリテン(捨て牌・見逃し)・流局のテンパイ料・流し満貫・九種九牌・四風連打・包(パオ)・飛び終了と順位・南入・あがり止め・手牌を隠して送ること・途中参加の人の画面・ボタンでのリーチとツモ・席とパネル・CPU の席の交代・進行役の交代(点数を戻してやり直し)・CPU 同士の対局(5 対局・44 局を最後まで、点数の合計が毎局一致)を自動テストで確認しています。 ※ Quest/Android 向けのマテリアル(VRChat/Mobile シェーダー)も同梱しています。 ■ 利用規約 ◯ VRChat のワールドに組み込んで公開できます(有料・企業・イベント用ワールドも可)。報告・クレジット表記は不要です。 ◯ 改変は自由です。 ◯ データ本体・スクリプト・改変データの再配布や販売は禁止です(例: このギミックを同梱したワールドデータを BOOTH で販売する等)。 ◯ ワールドの外(ほかのゲームや映像作品など)で使う場合は事前にご相談ください。 ◯ 点数はゲームの中だけのものです。現実のお金や換金できる物を賭ける使い方はしないでください。 ■ お問い合わせ 不具合やご不明な点は、BOOTH のメッセージからお気軽にご連絡ください。 ■ 制作について 3D モデル・テクスチャ・スクリプト・効果音は、制作者の指示のもとで AI アシスタントがコードとして生成し、制作者が調整・確認しています。 フォントは Zen Maru Gothic(SIL Open Font License 1.1)を同梱しています。牌の文字は Shippori Mincho B1・Yuji Syuku・Zen Maru Gothic(同ライセンス)で描いています。 ■ 更新履歴 v1.0 初版 ―――――――――――――――――――― [English] An automatic mahjong table for VRChat worlds (UdonSharp): four-player Japanese riichi mahjong. Press "Join" on a seat's console and "Start" on the settings panel: the wall is built, the dice are rolled and the tiles are dealt. Empty seats are filled by computer players, so even one person can play. - A table, four chairs with a console at each seat, 136 tiles (three red fives), dice, riichi sticks, a settings panel and a yaku board (about 2.4 m square with the chairs, the panel and the board) - Standard riichi rules: riichi, ippatsu, dora (kan dora, ura dora, red fives), pon / chi / kan (including robbing a kan), furiten, no swap-calling, pao, double ron, nagashi mangan, abortive draws, no-ten payments, dealer repeats and counters, sudden death, game end below zero - Yaku, fu and points are calculated automatically (checked against a research mahjong library on more than 20,000 hands) - Computer players that weigh tile efficiency and play safe against a riichi - Hidden hands: each player's tiles (and whether they can call) are sent masked with a key known only to that player's client and the table's owner, so other clients cannot read them from the network - Click a tile to discard it; buttons for tsumo, riichi, kan, ron, pon, chi and pass appear only when they can be used - Hints: marks on the tiles that keep the hand ready, the waits and furiten shown on your console (per player) - Settings: East only / East-South, red fives, open tanyao, thinking time, computer players, hints, start, end - Time-outs discard the drawn tile; two in a row hand the seat to the computer until the player comes back. Players who leave are replaced by the computer - Late joiners see the table as it is - 24 synthesized sound effects - Includes a sample scene 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. - Quest / Android materials (VRChat Mobile shaders) included. - Points are in-game only. Please do not use it to bet real money or anything of value. 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).
利用規約
◯ 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. Points are in-game only; do not bet real money or anything of value.
更新履歴
v1.0(2026/10/01) 初版










