{"id":7,"date":"2026-11-23T03:15:51","date_gmt":"2026-11-23T03:15:51","guid":{"rendered":"https:\/\/parcheesi3d.stylo.news\/?page_id=7"},"modified":"2026-11-23T03:15:51","modified_gmt":"2026-11-23T03:15:51","slug":"%d8%a5%d9%84%d8%b9%d8%a8-%d8%a7%d9%84%d8%a2%d9%86","status":"publish","type":"page","link":"https:\/\/parcheesi3d.stylo.news\/?page_id=7","title":{"rendered":"\u0625\u0644\u0639\u0628 \u0627\u0644\u0622\u0646"},"content":{"rendered":"\t<section class=\"p3d-onefile\" id=\"p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481\" dir=\"rtl\">\n\t\t<header class=\"p3d-head\">\n\t\t\t<div>\n\t\t\t\t<p class=\"p3d-kicker\">\u0644\u0639\u0628\u0629 \u0644\u0648\u062d\u064a\u0629 \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0623\u0628\u0639\u0627\u062f<\/p>\n\t\t\t\t<h2>\u0628\u0627\u0631\u062a\u0634\u064a\u0633\u064a 3D<\/h2>\n\t\t\t\t<p class=\"p3d-subtitle\">\u0645\u0631\u062d\u0628\u0627\u064b \u0628\u0643 \u0641\u064a \u0633\u0627\u062d\u0629 \u0627\u0644\u0644\u0639\u0628<\/p>\n\t\t\t<\/div>\n\t\t\t<span class=\"p3d-version\">BETA 0.3.1<\/span>\n\t\t<\/header>\n\n\t\t<div class=\"p3d-layout\">\n\t\t\t<div class=\"p3d-stage\" data-p3d-stage>\n\t\t\t\t<div class=\"p3d-loading\" data-p3d-loading>\u062c\u0627\u0631\u064d \u062a\u062c\u0647\u064a\u0632 \u0627\u0644\u0644\u0648\u062d\u0629 \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0623\u0628\u0639\u0627\u062f...<\/div>\n\t\t\t<\/div>\n\n\t\t\t<aside class=\"p3d-panel\">\n\t\t\t\t<div>\n\t\t\t\t\t<div class=\"p3d-small-label\">\u062f\u0648\u0631 \u0627\u0644\u0644\u0627\u0639\u0628 \u0627\u0644\u062d\u0627\u0644\u064a<\/div>\n\t\t\t\t\t<div class=\"p3d-current\" data-p3d-current>\n\t\t\t\t\t\t<span class=\"p3d-dot p3d-red\"><\/span><span>\u0627\u0644\u0623\u062d\u0645\u0631<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"p3d-dice-title\">\u0646\u062a\u064a\u062c\u0629 \u0627\u0644\u0646\u0631\u062f<\/div>\n\t\t\t\t<div class=\"p3d-dice\" data-p3d-dice aria-live=\"polite\">\u2684<\/div>\n\t\t\t\t<button class=\"p3d-roll\" type=\"button\" data-p3d-roll>\u0627\u0631\u0645\u0650 \u0627\u0644\u0646\u0631\u062f<\/button>\n\n\t\t\t\t<div class=\"p3d-players\">\n\t\t\t\t\t<div class=\"p3d-player is-active\" data-p3d-player=\"0\"><span>\ud83d\udd34 \u0627\u0644\u0623\u062d\u0645\u0631<\/span><b>\u25cf<\/b><\/div>\n\t\t\t\t\t<div class=\"p3d-player\" data-p3d-player=\"1\"><span>\ud83d\udfe2 \u0627\u0644\u0623\u062e\u0636\u0631<\/span><b>\u25cf<\/b><\/div>\n\t\t\t\t\t<div class=\"p3d-player\" data-p3d-player=\"2\"><span>\ud83d\udfe1 \u0627\u0644\u0623\u0635\u0641\u0631<\/span><b>\u25cf<\/b><\/div>\n\t\t\t\t\t<div class=\"p3d-player\" data-p3d-player=\"3\"><span>\ud83d\udd35 \u0627\u0644\u0623\u0632\u0631\u0642<\/span><b>\u25cf<\/b><\/div>\n\t\t\t\t<\/div>\n\n\t\t\t\t<p class=\"p3d-status\" data-p3d-status>\u0647\u0630\u0647 \u0646\u0633\u062e\u0629 \u062a\u0623\u0633\u064a\u0633\u064a\u0629. \u0631\u0645\u064a \u0627\u0644\u0646\u0631\u062f \u0648\u062a\u0628\u062f\u064a\u0644 \u0627\u0644\u0623\u062f\u0648\u0627\u0631 \u062a\u062c\u0631\u064a\u0628\u064a\u0627\u0646\u060c \u0648\u0633\u062a\u0636\u0627\u0641 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u0639\u0628 \u0648\u062a\u062d\u0631\u064a\u0643 \u0627\u0644\u0623\u062d\u062c\u0627\u0631 \u0641\u064a \u0627\u0644\u0645\u0631\u062d\u0644\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629.<\/p>\n\t\t\t<\/aside>\n\t\t<\/div>\n\t\t<p class=\"p3d-footnote\">\u0627\u0644\u0644\u0648\u062d\u0629 \u062b\u0627\u0628\u062a\u0629 \u0645\u0646 \u0627\u0644\u0623\u0639\u0644\u0649\u060c \u0648\u062a\u0638\u0647\u0631 \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u0627\u0639\u0628\u064a\u0646 \u0627\u0644\u0623\u0631\u0628\u0639\u0629 \u0648\u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062a \u0648\u0645\u0646\u0627\u0637\u0642 \u0627\u0644\u0648\u0635\u0648\u0644.<\/p>\n\t<\/section>\n\n\t<style>\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481{--p3d-gold:#e5bd70;direction:rtl;color:#f6f7f9;background:radial-gradient(circle at 50% 0,#29394b,#101722 68%);border:1px solid #354454;border-radius:22px;padding:clamp(12px,2vw,22px);max-width:1200px;margin:20px auto;box-shadow:0 18px 50px #0002;font-family:inherit}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 *{box-sizing:border-box}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 h2{margin:0;color:var(--p3d-gold);font-size:clamp(24px,4vw,34px);line-height:1.2}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-kicker{margin:0 0 5px;color:#b8c3d0;font-size:12px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-subtitle{margin:6px 0 0;color:#aab7c5;font-size:13px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-version{border:1px solid #806b45;color:#e8cc92;border-radius:30px;padding:6px 10px;font-size:10px;white-space:nowrap}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:14px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-stage{height:min(68vw,650px);min-height:380px;position:relative;overflow:hidden;border:1px solid #394b5e;border-radius:18px;background:linear-gradient(145deg,#26384a,#111a24);box-shadow:inset 0 0 35px #0005}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-stage canvas{display:block;width:100%;height:100%}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-loading{position:absolute;inset:0;display:grid;place-items:center;color:#d9c18c;font-size:14px;pointer-events:none;text-align:center;padding:20px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-panel{background:linear-gradient(155deg,#202d3c,#17212d);border:1px solid #344454;border-radius:18px;padding:17px;display:flex;flex-direction:column;gap:12px;min-width:0}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-small-label,#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-dice-title{font-size:12px;color:#aeb9c6}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-current{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px;margin-top:5px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-dot{width:12px;height:12px;border-radius:50%;display:inline-block}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-red{background:#e34f4f;box-shadow:0 0 12px #e34f4f}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-green{background:#269b68}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-yellow{background:#e4b83f}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-blue{background:#4386d2}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-dice-title{text-align:center;margin-top:3px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-dice{width:78px;height:78px;margin:0 auto;border-radius:17px;background:linear-gradient(145deg,#fff,#cbd4df);color:#17202b;display:grid;place-items:center;font-size:43px;font-weight:800;box-shadow:inset -5px -6px 12px #0002,0 8px 18px #0005}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-roll{border:0;border-radius:12px;padding:13px 15px;font:inherit;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#f0d28f,#c99b45);color:#222;box-shadow:0 6px 16px #0004}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-roll:disabled{opacity:.5;cursor:not-allowed}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-players{display:grid;gap:7px;margin-top:3px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-player{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border-radius:10px;background:#ffffff0a;border:1px solid #ffffff12;font-size:13px}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-player b{font-size:10px;color:#596777}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-player.is-active{border-color:#d8b56f;background:#d8b56f15}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-player.is-active b{color:#e5bd70}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-status{font-size:12px;line-height:1.8;color:#b2bfcc;background:#ffffff09;padding:11px;border-radius:10px;margin:0}\n\t#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-footnote{margin:10px 2px 0;color:#8e9cab;font-size:11px}\n\t@media(max-width:760px){#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-layout{grid-template-columns:1fr}#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-stage{height:62vw;min-height:320px;max-height:500px}#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-panel{display:grid;grid-template-columns:1fr 1fr;align-items:center}#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-players,#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-status{grid-column:1\/-1}#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-dice{width:64px;height:64px;font-size:36px}#p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481 .p3d-roll{width:100%}}\n\t<\/style>\n\n\t<script type=\"module\">\n\timport * as THREE from 'https:\/\/cdn.jsdelivr.net\/npm\/three@0.160.0\/build\/three.module.js';\n\n\t(() => {\n\t\tconst root = document.getElementById(\"p3d-5fec6286-4e49-4ad2-8415-65ada0a1e481\");\n\t\tif (!root) return;\n\n\t\tconst stage = root.querySelector('[data-p3d-stage]');\n\t\tconst diceFaces = ['\u2680','\u2681','\u2682','\u2683','\u2684','\u2685'];\n\t\tconst players = [\n\t\t\t{name:'\u0627\u0644\u0623\u062d\u0645\u0631', color:0xd93636, css:'p3d-red'},\n\t\t\t{name:'\u0627\u0644\u0623\u062e\u0636\u0631', color:0x087a38, css:'p3d-green'},\n\t\t\t{name:'\u0627\u0644\u0623\u0635\u0641\u0631', color:0xe2b313, css:'p3d-yellow'},\n\t\t\t{name:'\u0627\u0644\u0623\u0632\u0631\u0642', color:0x159bd0, css:'p3d-blue'}\n\t\t];\n\n\t\ttry {\n\t\t\tconst scene = new THREE.Scene();\n\t\t\tscene.background = new THREE.Color('#17212d');\n\n\t\t\t\/\/ \u0643\u0627\u0645\u064a\u0631\u0627 \u0639\u0644\u0648\u064a\u0629 \u062b\u0627\u0628\u062a\u0629: \u0644\u0627 \u0633\u062d\u0628 \u0648\u0644\u0627 \u062a\u062f\u0648\u064a\u0631 \u0648\u0644\u0627 \u062a\u0643\u0628\u064a\u0631 \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645.\n\t\t\tconst aspect = Math.max(stage.clientWidth, 1) \/ Math.max(stage.clientHeight, 1);\n\t\t\tconst viewSize = 9.1;\n\t\t\tconst camera = new THREE.OrthographicCamera(\n\t\t\t\t-viewSize * aspect, viewSize * aspect, viewSize, -viewSize, 0.1, 100\n\t\t\t);\n\t\t\tcamera.position.set(0, 24, 0.001);\n\t\t\tcamera.up.set(0, 0, -1);\n\t\t\tcamera.lookAt(0, 0, 0);\n\n\t\t\tconst renderer = new THREE.WebGLRenderer({antialias:true, alpha:false});\n\t\t\trenderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));\n\t\t\trenderer.outputColorSpace = THREE.SRGBColorSpace;\n\t\t\trenderer.shadowMap.enabled = true;\n\t\t\trenderer.shadowMap.type = THREE.PCFSoftShadowMap;\n\t\t\tstage.appendChild(renderer.domElement);\n\n\t\t\tscene.add(new THREE.HemisphereLight(0xffffff, 0x777777, 2.1));\n\t\t\tconst light = new THREE.DirectionalLight(0xffffff, 2.2);\n\t\t\tlight.position.set(-5, 15, 7);\n\t\t\tlight.castShadow = true;\n\t\t\tlight.shadow.mapSize.set(1024, 1024);\n\t\t\tscene.add(light);\n\n\t\t\t\/\/ \u0625\u0646\u0634\u0627\u0621 \u0631\u0633\u0645 \u0627\u0644\u0644\u0648\u062d\u0629 \u0628\u0631\u0645\u062c\u064a\u0627\u064b \u0639\u0644\u0649 Canvas: \u0644\u0627 \u0646\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0631\u0641\u0648\u0639\u0629 \u0648\u0644\u0627 \u0646\u0639\u0631\u0636\u0647\u0627 \u0643\u062e\u0644\u0641\u064a\u0629.\n\t\t\t\/\/ \u0647\u0630\u0627 \u0631\u0633\u0645 \u0623\u0635\u0644\u064a \u0645\u0648\u0644\u0651\u062f \u0645\u0646 \u0623\u0634\u0643\u0627\u0644 \u0648\u062e\u0637\u0648\u0637 \u0648\u0623\u0644\u0648\u0627\u0646 \u0648\u0623\u0631\u0642\u0627\u0645\u060c \u062b\u0645 \u064a\u064f\u0633\u062a\u062e\u062f\u0645 \u0643\u062e\u0627\u0645\u0629 \u0644\u0644\u0648\u062d\u0629 \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0623\u0628\u0639\u0627\u062f.\n\t\t\tconst boardCanvas = document.createElement('canvas');\n\t\t\tboardCanvas.width = 1200;\n\t\t\tboardCanvas.height = 1200;\n\t\t\tconst ctx = boardCanvas.getContext('2d');\n\t\t\tconst N = 15, cell = 80, margin = 12;\n\t\t\tconst boardColors = {\n\t\t\t\tyellow:'#e7b900', blue:'#159bd0', green:'#07552d', red:'#d92f36',\n\t\t\t\tivory:'#fffdf5', line:'#111820', pale:'#f5f0e4'\n\t\t\t};\n\t\t\tctx.fillStyle = '#111820';\n\t\t\tctx.fillRect(0,0,1200,1200);\n\t\t\tctx.fillStyle = boardColors.ivory;\n\t\t\tctx.fillRect(margin,margin,1176,1176);\n\n\t\t\tfunction cellRect(c,r,fill) {\n\t\t\t\tctx.fillStyle = fill;\n\t\t\t\tctx.fillRect(margin+c*cell, margin+r*cell, cell, cell);\n\t\t\t}\n\t\t\tfunction line(x1,y1,x2,y2,width=3,color=boardColors.line) {\n\t\t\t\tctx.strokeStyle=color; ctx.lineWidth=width;\n\t\t\t\tctx.beginPath(); ctx.moveTo(x1,y1); ctx.lineTo(x2,y2); ctx.stroke();\n\t\t\t}\n\t\t\tfunction centerOf(c,r) {\n\t\t\t\treturn [margin+(c+.5)*cell, margin+(r+.5)*cell];\n\t\t\t}\n\n\t\t\t\/\/ \u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u0627\u0639\u0628\u064a\u0646 \u0627\u0644\u0623\u0631\u0628\u0639 \u0641\u064a \u0632\u0648\u0627\u064a\u0627 \u0627\u0644\u0644\u0648\u062d\u0629.\n\t\t\tconst homes = [\n\t\t\t\t{key:'yellow', c:0, r:0, color:boardColors.yellow},\n\t\t\t\t{key:'blue', c:9, r:0, color:boardColors.blue},\n\t\t\t\t{key:'green', c:0, r:9, color:boardColors.green},\n\t\t\t\t{key:'red', c:9, r:9, color:boardColors.red}\n\t\t\t];\n\t\t\thomes.forEach(home => {\n\t\t\t\tconst x=margin+home.c*cell, y=margin+home.r*cell, size=6*cell;\n\t\t\t\tctx.fillStyle=home.color; ctx.fillRect(x,y,size,size);\n\t\t\t\t\/\/ \u0632\u062e\u0631\u0641\u0629 \u0645\u062b\u0644\u062b\u0629 \u062f\u0627\u062e\u0644 \u0643\u0644 \u0642\u0627\u0639\u062f\u0629\u060c \u0639\u0644\u0649 \u063a\u0631\u0627\u0631 \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0631\u062c\u0639\u064a\u0629.\n\t\t\t\tctx.fillStyle=boardColors.ivory;\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(x+cell*.35,y+cell*.35);\n\t\t\t\tctx.lineTo(x+size-cell*.35,y+cell*.35);\n\t\t\t\tctx.lineTo(x+size\/2,y+size\/2);\n\t\t\t\tctx.closePath(); ctx.fill();\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(x+size-cell*.35,y+cell*.35);\n\t\t\t\tctx.lineTo(x+size-cell*.35,y+size-cell*.35);\n\t\t\t\tctx.lineTo(x+size\/2,y+size\/2);\n\t\t\t\tctx.closePath(); ctx.fill();\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(x+size-cell*.35,y+size-cell*.35);\n\t\t\t\tctx.lineTo(x+cell*.35,y+size-cell*.35);\n\t\t\t\tctx.lineTo(x+size\/2,y+size\/2);\n\t\t\t\tctx.closePath(); ctx.fill();\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(x+cell*.35,y+size-cell*.35);\n\t\t\t\tctx.lineTo(x+cell*.35,y+cell*.35);\n\t\t\t\tctx.lineTo(x+size\/2,y+size\/2);\n\t\t\t\tctx.closePath(); ctx.fill();\n\n\t\t\t\t\/\/ \u0645\u0631\u0628\u0639 \u0627\u0644\u0628\u064a\u062a \u0627\u0644\u062f\u0627\u062e\u0644\u064a.\n\t\t\t\tconst bx=x+cell*1.35, by=y+cell*1.35, bs=cell*3.3;\n\t\t\t\tctx.fillStyle=home.color;\n\t\t\t\tctx.fillRect(bx,by,bs,bs);\n\t\t\t\tctx.strokeStyle='#101820'; ctx.lineWidth=5;\n\t\t\t\tctx.strokeRect(bx,by,bs,bs);\n\t\t\t\tctx.fillStyle=boardColors.ivory;\n\t\t\t\tctx.beginPath(); ctx.arc(x+size\/2,y+size\/2,cell*1.05,0,Math.PI*2); ctx.fill();\n\t\t\t});\n\n\t\t\t\/\/ \u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062a \u0627\u0644\u0623\u0631\u0628\u0639\u0629: \u062b\u0644\u0627\u062b\u0629 \u0623\u0639\u0645\u062f\u0629\/\u0635\u0641\u0648\u0641 \u0641\u064a \u0643\u0644 \u0630\u0631\u0627\u0639.\n\t\t\tfor (let r=0;r<N;r++) for (let c=0;c<N;c++) {\n\t\t\t\tconst onArm = ((c>=6 && c<=8) && (r<=5 || r>=9)) || ((r>=6 && r<=8) && (c<=5 || c>=9));\n\t\t\t\tconst inCenter = c>=6 && c<=8 && r>=6 && r<=8;\n\t\t\t\tif (onArm && !inCenter) cellRect(c,r,boardColors.ivory);\n\t\t\t}\n\n\t\t\t\/\/ \u062e\u0637\u0648\u0637 \u0634\u0628\u0643\u0629 \u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062a.\n\t\t\tfor (let i=0;i<=N;i++) {\n\t\t\t\tconst p=margin+i*cell;\n\t\t\t\tline(p,margin,p,margin+N*cell,2);\n\t\t\t\tline(margin,p,margin+N*cell,p,2);\n\t\t\t}\n\n\t\t\t\/\/ \u062e\u0637\u0648\u0637 \u0641\u0635\u0644 \u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0648\u0645\u062d\u064a\u0637 \u0627\u0644\u0644\u0648\u062d\u0629.\n\t\t\tctx.strokeStyle='#111820'; ctx.lineWidth=8;\n\t\t\tctx.strokeRect(margin,margin,N*cell,N*cell);\n\n\t\t\t\/\/ \u0645\u0633\u0627\u0631\u0627\u062a \u0627\u0644\u062f\u062e\u0648\u0644 \u0627\u0644\u0645\u0644\u0648\u0646\u0629 \u0627\u0644\u0645\u0624\u062f\u064a\u0629 \u0625\u0644\u0649 \u0627\u0644\u0645\u0631\u0643\u0632.\n\t\t\tconst laneRows = [\n\t\t\t\t{color:boardColors.yellow, cells:[[7,1],[7,2],[7,3],[7,4],[7,5]]},\n\t\t\t\t{color:boardColors.blue, cells:[[9,7],[10,7],[11,7],[12,7],[13,7]]},\n\t\t\t\t{color:boardColors.red, cells:[[7,9],[7,10],[7,11],[7,12],[7,13]]},\n\t\t\t\t{color:boardColors.green, cells:[[1,7],[2,7],[3,7],[4,7],[5,7]]}\n\t\t\t];\n\t\t\tlaneRows.forEach(lane => lane.cells.forEach(([c,r]) => {\n\t\t\t\tcellRect(c,r,lane.color);\n\t\t\t\tctx.strokeStyle='#111820';ctx.lineWidth=2;\n\t\t\t\tctx.strokeRect(margin+c*cell,margin+r*cell,cell,cell);\n\t\t\t}));\n\n\t\t\t\/\/ \u0645\u062b\u0644\u062b\u0627\u062a \u0627\u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0623\u0631\u0628\u0639\u0629.\n\t\t\tconst cx=margin+7.5*cell, cy=margin+7.5*cell;\n\t\t\tconst centerCorners=[\n\t\t\t\t{color:boardColors.yellow,pts:[[cx,cy],[margin+6*cell,margin+6*cell],[margin+9*cell,margin+6*cell]]},\n\t\t\t\t{color:boardColors.blue,pts:[[cx,cy],[margin+9*cell,margin+6*cell],[margin+9*cell,margin+9*cell]]},\n\t\t\t\t{color:boardColors.red,pts:[[cx,cy],[margin+9*cell,margin+9*cell],[margin+6*cell,margin+9*cell]]},\n\t\t\t\t{color:boardColors.green,pts:[[cx,cy],[margin+6*cell,margin+9*cell],[margin+6*cell,margin+6*cell]]}\n\t\t\t];\n\t\t\tcenterCorners.forEach(t=>{\n\t\t\t\tctx.fillStyle=t.color;ctx.beginPath();ctx.moveTo(...t.pts[0]);ctx.lineTo(...t.pts[1]);ctx.lineTo(...t.pts[2]);ctx.closePath();ctx.fill();\n\t\t\t\tctx.strokeStyle='#111820';ctx.lineWidth=3;ctx.stroke();\n\t\t\t});\n\n\t\t\t\/\/ \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0645\u0633\u0627\u0631 \u0627\u0644\u062e\u0627\u0631\u062c\u064a\u0629\u060c \u0635\u063a\u064a\u0631\u0629 \u0648\u0648\u0627\u0636\u062d\u0629.\n\t\t\tconst labels = [\n\t\t\t\t{c:7,r:0,n:'18'},{c:7,r:1,n:'17'},{c:7,r:2,n:'16'},{c:7,r:3,n:'15'},{c:7,r:4,n:'14'},{c:7,r:5,n:'13'},\n\t\t\t\t{c:14,r:7,n:'1'},{c:13,r:7,n:'2'},{c:12,r:7,n:'3'},{c:11,r:7,n:'4'},{c:10,r:7,n:'5'},{c:9,r:7,n:'6'},\n\t\t\t\t{c:7,r:14,n:'52'},{c:7,r:13,n:'53'},{c:7,r:12,n:'54'},{c:7,r:11,n:'55'},{c:7,r:10,n:'56'},{c:7,r:9,n:'57'},\n\t\t\t\t{c:0,r:7,n:'35'},{c:1,r:7,n:'34'},{c:2,r:7,n:'33'},{c:3,r:7,n:'32'},{c:4,r:7,n:'31'},{c:5,r:7,n:'30'}\n\t\t\t];\n\t\t\tctx.fillStyle='#111820';ctx.font='bold 23px Arial';ctx.textAlign='center';ctx.textBaseline='middle';\n\t\t\tlabels.forEach(item=>{\n\t\t\t\tconst [x,y]=centerOf(item.c,item.r);ctx.fillText(item.n,x,y);\n\t\t\t});\n\n\t\t\t\/\/ \u062f\u0648\u0627\u0626\u0631 \u0627\u0644\u0623\u0645\u0627\u0646\/\u0639\u0644\u0627\u0645\u0627\u062a \u0627\u0644\u0627\u0646\u0637\u0644\u0627\u0642.\n\t\t\t[[7,6],[8,7],[7,8],[6,7],[1,6],[13,8],[8,13],[6,1]].forEach(([c,r])=>{\n\t\t\t\tconst [x,y]=centerOf(c,r);\n\t\t\t\tctx.fillStyle='#fff';ctx.beginPath();ctx.arc(x,y,17,0,Math.PI*2);ctx.fill();\n\t\t\t\tctx.strokeStyle='#111820';ctx.lineWidth=3;ctx.stroke();\n\t\t\t});\n\n\t\t\tconst texture = new THREE.CanvasTexture(boardCanvas);\n\t\t\ttexture.colorSpace = THREE.SRGBColorSpace;\n\t\t\ttexture.anisotropy = renderer.capabilities.getMaxAnisotropy();\n\n\t\t\t\/\/ \u0642\u0627\u0639\u062f\u0629 \u062e\u0634\u0628\u064a\u0629 \u0631\u0641\u064a\u0639\u0629 \u0623\u0633\u0641\u0644 \u0627\u0644\u0644\u0648\u062d\u0629.\n\t\t\tconst wood = new THREE.Mesh(\n\t\t\t\tnew THREE.BoxGeometry(15.45,0.38,15.45),\n\t\t\t\tnew THREE.MeshStandardMaterial({color:0x3c281b,roughness:0.55})\n\t\t\t);\n\t\t\twood.position.y=-0.24;wood.receiveShadow=true;wood.castShadow=true;scene.add(wood);\n\n\t\t\tconst board = new THREE.Mesh(\n\t\t\t\tnew THREE.PlaneGeometry(15,15),\n\t\t\t\tnew THREE.MeshStandardMaterial({map:texture,roughness:0.82})\n\t\t\t);\n\t\t\tboard.rotation.x=-Math.PI\/2;\n\t\t\tboard.position.y=-0.035;\n\t\t\tboard.receiveShadow=true;\n\t\t\tscene.add(board);\n\n\t\t\t\/\/ \u0642\u0637\u0639 \u0627\u0644\u0644\u0639\u0628: \u0623\u0631\u0628\u0639 \u0642\u0637\u0639 \u0644\u0643\u0644 \u0644\u0627\u0639\u0628\u060c \u0645\u0648\u0636\u0648\u0639\u0629 \u062f\u0627\u062e\u0644 \u0642\u0648\u0627\u0639\u062f\u0647\u0627.\n\t\t\tconst pawnGroups=[];\n\t\t\tconst pawnHomes=[\n\t\t\t\t{color:players[2].color, c:0,r:0},   \/\/ \u0627\u0644\u0623\u0635\u0641\u0631 \u0623\u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631\n\t\t\t\t{color:players[3].color, c:9,r:0},   \/\/ \u0627\u0644\u0623\u0632\u0631\u0642 \u0623\u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646\n\t\t\t\t{color:players[1].color, c:0,r:9},   \/\/ \u0627\u0644\u0623\u062e\u0636\u0631 \u0623\u0633\u0641\u0644 \u0627\u0644\u064a\u0633\u0627\u0631\n\t\t\t\t{color:players[0].color, c:9,r:9}    \/\/ \u0627\u0644\u0623\u062d\u0645\u0631 \u0623\u0633\u0641\u0644 \u0627\u0644\u064a\u0645\u064a\u0646\n\t\t\t];\n\t\t\tpawnHomes.forEach(home=>{\n\t\t\t\tconst material=new THREE.MeshStandardMaterial({color:home.color,metalness:0.12,roughness:0.28});\n\t\t\t\tconst positions=[\n\t\t\t\t\t[home.c+1.9,home.r+1.9],[home.c+4.1,home.r+1.9],\n\t\t\t\t\t[home.c+1.9,home.r+4.1],[home.c+4.1,home.r+4.1]\n\t\t\t\t];\n\t\t\t\tpositions.forEach(([col,row])=>{\n\t\t\t\t\tconst x=col-7,z=row-7;\n\t\t\t\t\tconst pawn=new THREE.Group();\n\t\t\t\t\tconst base=new THREE.Mesh(new THREE.CylinderGeometry(.34,.39,.16,32),new THREE.MeshStandardMaterial({color:0xe6e1d5,roughness:.35}));\n\t\t\t\t\tbase.position.y=.13;base.castShadow=true;pawn.add(base);\n\t\t\t\t\tconst body=new THREE.Mesh(new THREE.CylinderGeometry(.19,.27,.48,32),material);\n\t\t\t\t\tbody.position.y=.42;body.castShadow=true;pawn.add(body);\n\t\t\t\t\tconst head=new THREE.Mesh(new THREE.SphereGeometry(.25,32,24),material);\n\t\t\t\t\thead.position.y=.76;head.castShadow=true;pawn.add(head);\n\t\t\t\t\tpawn.position.set(x,.02,z);scene.add(pawn);pawnGroups.push(pawn);\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tfunction resize() {\n\t\t\t\tconst width=Math.max(stage.clientWidth,1);\n\t\t\t\tconst height=Math.max(stage.clientHeight,1);\n\t\t\t\tconst currentAspect=width\/height;\n\t\t\t\tconst size=9.1;\n\t\t\t\tcamera.left=-size*currentAspect;\n\t\t\t\tcamera.right=size*currentAspect;\n\t\t\t\tcamera.top=size;\n\t\t\t\tcamera.bottom=-size;\n\t\t\t\tcamera.updateProjectionMatrix();\n\t\t\t\trenderer.setSize(width,height);\n\t\t\t}\n\t\t\tconst observer=new ResizeObserver(resize);\n\t\t\tobserver.observe(stage);\n\t\t\tresize();\n\n\t\t\tconst loading=root.querySelector('[data-p3d-loading]');\n\t\t\tif(loading) loading.remove();\n\n\t\t\tfunction animate() {\n\t\t\t\trequestAnimationFrame(animate);\n\t\t\t\trenderer.render(scene,camera);\n\t\t\t}\n\t\t\tanimate();\n\n\t\t\tlet currentPlayer=0,rolling=false;\n\t\t\tconst dice=root.querySelector('[data-p3d-dice]');\n\t\t\tconst current=root.querySelector('[data-p3d-current]');\n\t\t\tconst status=root.querySelector('[data-p3d-status]');\n\t\t\tconst rollButton=root.querySelector('[data-p3d-roll]');\n\t\t\tfunction updateTurn() {\n\t\t\t\tcurrent.innerHTML='<span class=\"p3d-dot '+players[currentPlayer].css+'\"><\/span><span>'+players[currentPlayer].name+'<\/span>';\n\t\t\t\troot.querySelectorAll('[data-p3d-player]').forEach((row,index)=>row.classList.toggle('is-active',index===currentPlayer));\n\t\t\t}\n\t\t\trollButton.addEventListener('click',()=>{\n\t\t\t\tif(rolling)return;\n\t\t\t\trolling=true;rollButton.disabled=true;\n\t\t\t\tlet ticks=0;\n\t\t\t\tconst timer=window.setInterval(()=>{\n\t\t\t\t\tdice.textContent=diceFaces[Math.floor(Math.random()*6)];\n\t\t\t\t\tticks++;\n\t\t\t\t\tif(ticks>=12){\n\t\t\t\t\t\twindow.clearInterval(timer);\n\t\t\t\t\t\tconst result=1+Math.floor(Math.random()*6);\n\t\t\t\t\t\tdice.textContent=diceFaces[result-1];\n\t\t\t\t\t\tstatus.textContent='\u0646\u062a\u064a\u062c\u0629 \u0627\u0644\u0646\u0631\u062f: '+result+'. \u062d\u0631\u0643\u0629 \u0627\u0644\u0623\u062d\u062c\u0627\u0631 \u0648\u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0644\u0639\u0628 \u0633\u062a\u0636\u0627\u0641 \u0641\u064a \u0627\u0644\u0645\u0631\u062d\u0644\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629.';\n\t\t\t\t\t\tcurrentPlayer=(currentPlayer+1)%players.length;\n\t\t\t\t\t\tupdateTurn();rolling=false;rollButton.disabled=false;\n\t\t\t\t\t}\n\t\t\t\t},75);\n\t\t\t});\n\t\t} catch(error) {\n\t\t\tconst loading=root.querySelector('[data-p3d-loading]');\n\t\t\tif(loading) loading.textContent='\u062a\u0639\u0630\u0631 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0644\u0648\u062d\u0629 \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0623\u0628\u0639\u0627\u062f. \u062a\u062d\u0642\u0642 \u0645\u0646 \u062f\u0639\u0645 WebGL \u0648\u0627\u062a\u0635\u0627\u0644 \u0627\u0644\u0645\u0643\u062a\u0628\u0629.';\n\t\t\tconsole.error('Parcheesi 3D board error:',error);\n\t\t}\n\t})();\n\t<\/script>\n\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":1,"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=\/wp\/v2\/pages\/7\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/parcheesi3d.stylo.news\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}