求热心网友,转运中国象棋专业版2.0 - html原码

查看 49|回复 8
作者:lizhipei78   
求热心网友,转运中国象棋专业版2.0 - html原码
https://www.52pojie.cn/thread-2097870-1-1.html
五子棋专业版2.4 - 网页版

专业版, 中国象棋, 原码

SpecterShell   
期待热心网友...........
TGSAN   
我是热心网友
4630269wu   

   
   
    中国象棋专业版2.0
   
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }
        body {
            background: #1a1a1a;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: '楷体', 'KaiTi', '华文楷体', serif;
        }
        .game-container {
            background: transparent;
            padding: 20px;
            border-radius: 0;
            box-shadow: none;
            border: none;
            display: flex;
            gap: 40px;
            align-items: center;
        }
        /* 强制canvas显示尺寸与像素尺寸一致,防止浏览器缩放导致模糊 */
        canvas {
            display: block;
            width: 560px;
            height: 630px;
            border-radius: 18px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            background: #f0d9b5;
            cursor: pointer;
        }
        .right-panel {
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
            justify-content: center;
            min-width: 160px;
        }
        .turn-indicator {
            background: #5e3e1e;
            color: #f9eac3;
            padding: 8px 12px;
            border-radius: 50px;
            font-size: 22px;
            letter-spacing: 2px;
            box-shadow: inset 0 -3px 0 #2f1f0e, 0 6px 10px black;
            border-bottom: 2px solid #b5914c;
            width: 100%;
            text-align: center;
            margin-bottom: 5px;
        }
        .mode-selector, .difficulty-selector {
            background: #c29e5e;
            border-radius: 40px;
            padding: 8px 12px;
            font-size: 20px;
            font-weight: bold;
            color: #2b1a0a;
            border: 2px solid #efd39e;
            box-shadow: inset 0 -2px 0 #6f4f2e, 0 6px 8px black;
            cursor: pointer;
            outline: none;
            width: 100%;
            text-align: center;
        }
        .action-btn {
            background: #c29e5e;
            border: none;
            font-size: 22px;
            font-family: '楷体', serif;
            font-weight: bold;
            padding: 8px 0;
            border-radius: 40px;
            color: #2b1a0a;
            box-shadow: 0 8px 0 #6f4f2e, 0 10px 15px black;
            cursor: pointer;
            transition: 0.08s linear;
            border: 1px solid #efd39e;
            letter-spacing: 2px;
            width: 100%;
        }
        .action-btn:active {
            transform: translateY(7px);
            box-shadow: 0 2px 0 #5a3f22, 0 8px 12px black;
        }
   

   
        
        
            红方走棋
            
                双人对战
                🤖AI执黑
                🤖AI执红
            
            
                🤖初级1层
                🤖中级2层
                🤖高级3层
            
            悔棋
            新局
        
   

   

zhao2233   
没有权限上传附件
235956   
试用了,体验并不是很好,不如专业象棋应用
blindcat   
懂一点玩的规则,但不会想很多步
tail88   
感谢分享。
Felldeadbird   
   
保存为ntf-8格式,否则乱码。下了一局,AI陪我下,丢了一个车,不能悔棋。
您需要登录后才可以回帖 登录 | 立即注册

返回顶部