惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

秋記Autumn - 软件工具

OpenAI Codex绿色免安装版+接入Deepseek教程+安装使用攻略 两款微信多开软件,一台电脑同时打开多个微信,神器! 微信聊天记录一键导出备份与查看 [开源]一款用于2D图像创作的编辑器,可用于绘制像素画、制作动画、编辑图片和设计 Logo,支持像素、绘画和矢量等多种创作方式。 Windows XP_SP2_x64简体中文语言安装包 PDF编辑 PDF-XChange Editor Plus 10.8.0.405 免装便携版 直播聚合工具 - 观潮台v2.0 直击痛点!搜狗输入法-纯净精简化尊享版,全面拦截各类弹窗广告 五子棋专业版 - HTML源码 微信聊天记录查看导出工具 WeFlow v4.2.1 火绒强力卸载工具Beta版 Huorong Uninstaller v1.0.0.3
中国象棋 · 完美居中版- HTML5源码
秋記Autumn · 2026-03-31 · via 秋記Autumn - 软件工具

<!DOCTYPE HTML>

<html>

<head>

<meta charset="UTF-8">

<title>中国象棋 1.5 倍版</title>

<meta name="viewport" content="width=device-width; initial-scale=1.0" />

<link href="css/chess.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="chessBox" class="chess_box">

    <canvas id="chess"></canvas>

    <div class="left-buttons">

        <button class="side-btn" id="indexDy">人机对弈</button>

        <button class="side-btn" id="indexQj">挑战棋局</button>

    </div>

    <div class="right-buttons">

        <button class="side-btn" id="restartBtn">重新开始</button>

        <button class="side-btn" id="regretBtn">悔棋</button>

    </div>

    <audio src="audio/click.wav" id="clickAudio" preload="auto"></audio>

    <audio src="audio/select.wav" id="selectAudio" preload="auto"></audio>

</div>

<div id="dyPopup" class="popup-menu">

    <div class="close-btn" id="closeDy"></div>

    <div class="menu-info">

        <label><input name="depth" type="radio" value="2"> 菜鸟水平</label>

        <label><input name="depth" type="radio" value="3" checked> 中级水平</label>

        <label><input name="depth" type="radio" value="4"> 高手水平</label>

    </div>

    <div class="menu-btn" id="playBtn">开始对弈</div>

</div>

<div id="qjPopup" class="popup-menu">

    <div class="close-btn" id="closeQj"></div>

    <div class="menu-info">

        <label><input name="clasli" type="radio" value="0" checked> 八卦阵法</label>

        <label><input name="clasli" type="radio" value="1"> 很二棋局</label>

        <label><input name="clasli" type="radio" value="2"> 七星会阵</label>

    </div>

    <div class="menu-btn" id="clasliBtn">开始挑战</div>

</div>

<script type="text/javascript" src="js/common.js"></script>

<script type="text/javascript" src="js/play.js"></script>

<script type="text/javascript" src="js/AI.js"></script>

<script type="text/javascript" src="js/gambit.js"></script>

<script type="text/javascript" src="js/clasli.js"></script>

<script>

// 确保所有按钮正常工作

(function() {

    // 等待所有脚本加载完成

    window.addEventListener('load', function() {

        console.log('页面加载完成,初始化按钮...');

        // 获取元素

        var chessBox = document.getElementById('chessBox');

        var dyPopup = document.getElementById('dyPopup');

        var qjPopup = document.getElementById('qjPopup');

        // 默认直接开始人机对弈(中级)

        setTimeout(function() {

            if (typeof play !== 'undefined' && play.init) {

                play.isPlay = true;

                play.init(3);

                chessBox.style.display = 'block';

            }

        }, 500);

        // 人机对弈按钮

        document.getElementById('indexDy').onclick = function(e) {

            e.stopPropagation();

            qjPopup.style.display = 'none';

            dyPopup.style.display = 'block';

        };

        // 挑战棋局按钮

        document.getElementById('indexQj').onclick = function(e) {

            e.stopPropagation();

            dyPopup.style.display = 'none';

            qjPopup.style.display = 'block';

        };

        // 关闭弹出菜单

        document.getElementById('closeDy').onclick = function() {

            dyPopup.style.display = 'none';

        };

        document.getElementById('closeQj').onclick = function() {

            qjPopup.style.display = 'none';

        };

        // 点击空白处关闭菜单

        window.onclick = function(e) {

            if (!e.target.closest('.popup-menu') &&

                !e.target.closest('#indexDy') &&

                !e.target.closest('#indexQj')) {

                dyPopup.style.display = 'none';

                qjPopup.style.display = 'none';

            }

        };

        // 开始对弈按钮

        document.getElementById('playBtn').onclick = function() {

            var depth = 3;

            var radios = document.getElementsByName('depth');

            for (var i = 0; i < radios.length; i++) {

                if (radios[i].checked) depth parseInt(radios[i].value, 10);

            }

            if (typeof play !== 'undefined' && play.init) {

                play.isPlay true;

                play.init(depth);

                chessBox.style.display 'block';

                dyPopup.style.display 'none';

            }

        };

        // 开始挑战按钮

        document.getElementById('clasliBtn').onclick function() {

            var clasli 0;

            var radios document.getElementsByName('clasli');

            for (var i 0; i < radios.length; i++) {

                if (radios[i].checked) clasli parseInt(radios[i].value, 10);

            }

            if (typeof play !== 'undefined' && play.init && typeof com.clasli !== 'undefined') {

                play.isPlay true;

                play.init(4, com.clasli[clasli].map);

                chessBox.style.display 'block';

                qjPopup.style.display 'none';

            }

        };

        // 重新开始

        document.getElementById('restartBtn').onclick function() {

            if (confirm('是否确定要重新开始?')) {

                if (typeof play !== 'undefined') {

                    play.isPlay true;

                    play.init(play.depth || 3, play.nowMap);

                }

            }

        };

        // 悔棋

        document.getElementById('regretBtn').onclick function() {

            if (typeof play !== 'undefined' && play.regret) {

                play.regret();

            }

        };

    });

})();

</script>

</body>

</html>