分享和讨论Javascript相关的话题
回复
头像
ejsoon
一枝独秀
一枝独秀
帖子: 5816
注册时间: 2022年 11月 18日 17:36
联系:

Re: 改下哥尼斯堡網頁程式

帖子 ejsoon »

翻譯成英文:


哥尼斯堡的誕生最遲在2008年,當時定下了「棋盤形式、沿著箭頭方向行走、走完後箭頭轉向」的基本規則,但是長達十多年以來它未能調整到一個攻防平衡的遊戲。
2022年4月2日,我忽來靈感,對其進行重大更新,首先把每方的token改為一個(之前是兩個),再確定了每方每回合可以走任意步,先放十二座可轉的木橋後才能放七座不可轉的石橋。
2023年09月04日,去掉了「炸彈」元素。2025年1月9日,廢除「每回合必須放一座新橋」的規定。2025-06-30 13:23:15增加「當木橋沒用完時每回合必須放一座新橋」的規定。至此,我認為這款弈棋的規則應該是足夠完善了。
這個遊戲起初名為「七橋問題」,2022-10-25才更名為「哥尼斯堡」。

代码: 全选

Here is the English translation of your text, maintaining a professional yet descriptive tone:

---

### The Evolution of Königsberg

The origins of **Königsberg** date back to at least 2008, when the fundamental rules—a grid-based board, movement following arrow directions, and rotating the arrows after each move—were first established. However, for over a decade, the game struggled to achieve a proper balance between offense and defense.

On **April 2, 2022**, a sudden spark of inspiration led to a major overhaul. I reduced the number of tokens per player from two to one and decreed that players could move an unlimited number of steps per turn. Additionally, I finalized the setup phase: twelve rotatable **wooden bridges** must be placed before the seven fixed **stone bridges** can be deployed.

Further refinements followed:

* **September 4, 2023:** The "bomb" element was removed.
* **January 9, 2025:** The rule requiring a new bridge to be placed every turn was abolished.
* **June 30, 2025:** A new condition was added: "As long as there are wooden bridges remaining, one must be placed each turn."

With these adjustments, I believe the rules of this strategy game have finally reached a state of completion.

Originally titled **"The Seven Bridges Problem,"** the game was officially renamed **"Königsberg"** on October 25, 2022.
https://ejsoon.vip/
弈趣極光:享受思維樂趣
头像
ejsoon
一枝独秀
一枝独秀
帖子: 5816
注册时间: 2022年 11月 18日 17:36
联系:

Re: 改下哥尼斯堡網頁程式

帖子 ejsoon »

The Evolution of Königsberg

代码: 全选

The origins of Königsberg date back to at least 2008, when the fundamental rules—a grid-based board, movement following arrow directions, and rotating the arrows after each move—were first established. However, for over a decade, the game struggled to achieve a proper balance between offense and defense.

On April 2, 2022, a sudden spark of inspiration led to a major overhaul. I reduced the number of tokens per player from two to one and decreed that players could move an unlimited number of steps per turn. Additionally, I finalized the setup phase: twelve rotatable wooden bridges must be placed before the seven fixed stone bridges can be deployed.

Further refinements followed:

    September 4, 2023: The "bomb" element was removed.

    January 9, 2025: The rule requiring a new bridge to be placed every turn was abolished.

    June 30, 2025: A new condition was added: "As long as there are wooden bridges remaining, one must be placed each turn."

With these adjustments, I believe the rules of this strategy game have finally reached a state of completion.

Originally titled "The Seven Bridges Problem," the game was officially renamed "Königsberg" on October 25, 2022.
https://ejsoon.vip/
弈趣極光:享受思維樂趣
头像
ejsoon
一枝独秀
一枝独秀
帖子: 5816
注册时间: 2022年 11月 18日 17:36
联系:

Re: 改下哥尼斯堡網頁程式

帖子 ejsoon »

幾張圖,準備上傳至bgg:
附件
20260519_211350.jpg
20260519_211350.jpg (2.48 MiB) 查看 246 次
20260519_211315.jpg
20260519_211315.jpg (2.41 MiB) 查看 246 次
20260519_210334.jpg
20260519_210334.jpg (1.96 MiB) 查看 246 次
https://ejsoon.vip/
弈趣極光:享受思維樂趣
头像
ejsoon
一枝独秀
一枝独秀
帖子: 5816
注册时间: 2022年 11月 18日 17:36
联系:

Re: 改下哥尼斯堡網頁程式

帖子 ejsoon »

代码: 全选

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg id="konigsberg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="720" height="480" viewBox="0 0 720 480" style="background: lightblue; height: 100%; width: 100%;"><g id="kongnisbersvg">
                <g class="appendarea"><circle cx="180" cy="48" r="24" fill="#fff" stroke="#333" stroke-width="2" i="0"/><circle cx="360" cy="48" r="24" fill="#fff" stroke="#333" stroke-width="2" i="1"/><circle cx="540" cy="48" r="24" fill="#fff" stroke="#333" stroke-width="2" i="2"/><circle cx="90" cy="203.88457268119896" r="24" fill="#fff" stroke="#333" stroke-width="2" i="3"/><circle cx="270" cy="203.88457268119896" r="24" fill="#fff" stroke="#333" stroke-width="2" i="4"/><circle cx="450" cy="203.88457268119896" r="24" fill="#fff" stroke="#333" stroke-width="2" i="5"/><circle cx="630" cy="203.88457268119896" r="24" fill="#fff" stroke="#333" stroke-width="2" i="6"/><circle cx="180" cy="359.7691453623979" r="24" fill="#fff" stroke="#333" stroke-width="2" i="7"/><circle cx="360" cy="359.7691453623979" r="24" fill="#fff" stroke="#333" stroke-width="2" i="8"/><circle cx="540" cy="359.7691453623979" r="24" fill="#fff" stroke="#333" stroke-width="2" i="9"/><path class="arrowbrg" d="M73,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="-120" style="transform: rotate(-120deg); transform-origin: 135px 281.827px 0px;"/><path class="arrowbrg" d="M208,359.7691453623979 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="0" style="transform: rotate(0deg); transform-origin: 270px 359.769px 0px;"/><path class="arrowbrg" d="M253,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="60" style="transform: rotate(60deg); transform-origin: 315px 281.827px 0px;"/><path class="arrowbrg" d="M253,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="-60" style="transform: rotate(-60deg); transform-origin: 315px 125.942px 0px;"/><path class="arrowbrg" d="M388,48 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="0" style="transform: rotate(0deg); transform-origin: 450px 48px 0px;"/><path class="arrowbrg" d="M523,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="60" style="transform: rotate(60deg); transform-origin: 585px 125.942px 0px;"/><path class="arrowbrg" d="M523,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="-60" style="transform: rotate(-60deg); transform-origin: 585px 281.827px 0px;"/><path class="arrowbrg" d="M433,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="60" style="transform: rotate(60deg); transform-origin: 495px 281.827px 0px;"/><path class="arrowbrg" d="M343,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="60" style="transform: rotate(60deg); transform-origin: 405px 125.942px 0px;"/><path class="arrowbrg" d="M208,48 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="180" style="transform: rotate(180deg); transform-origin: 270px 48px 0px;"/><path class="arrowbrg" d="M388,359.7691453623979 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="180" style="transform: rotate(180deg); transform-origin: 450px 359.769px 0px;"/><path class="arrowbrg" d="M433,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#C19A6B" stroke="none" stroke-width="2" rotatedeg="120" style="transform: rotate(120deg); transform-origin: 495px 125.942px 0px;"/><path class="arrowbrg" d="M343,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#708090" stroke="none" stroke-width="2" rotatedeg="120" style="transform: rotate(120deg); transform-origin: 405px 281.827px 0px;"/><path class="arrowbrg" d="M163,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#708090" stroke="none" stroke-width="2" rotatedeg="-120" style="transform: rotate(-120deg); transform-origin: 225px 125.942px 0px;"/><path class="arrowbrg" d="M163,281.82685902179844 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#708090" stroke="none" stroke-width="2" rotatedeg="-60" style="transform: rotate(-60deg); transform-origin: 225px 281.827px 0px;"/><path class="arrowbrg" d="M298,203.88457268119896 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#708090" stroke="none" stroke-width="2" rotatedeg="0" style="transform: rotate(0deg); transform-origin: 360px 203.885px 0px;"/><path class="arrowbrg" d="M73,125.94228634059948 v -12 h 100 v -12 l 24 24 l -24 24 v -12 h -100 Z" fill="#708090" stroke="none" stroke-width="2" rotatedeg="120" style="transform: rotate(120deg); transform-origin: 135px 125.942px 0px;"/></g>
                
                <g class="bottomarea"><circle cx="90" cy="203.88457268119896" r="24" fill="#77d" stroke="none" stroke-width="4" i="3" class="man" style="transform: translate(0px);"/></g>
                <g class="middlearea">
                    
                </g>
                <g class="toparea"><circle cx="360" cy="359.7691453623979" r="24" fill="#3d3" stroke="lightyellow" stroke-width="4" i="8" class="man" stroke-dasharray="5 5" style="transform: translate(0px);"><animate class="dashoffset" attributeName="stroke-dashoffset" values="0;-24000" repeatCount="indefinite" dur="777s"/></circle></g>
                <g id="g12155">
                    <path d="M 48 420 h 72 v 40 h -72 Z" fill="lightblue" stroke="#fff" stroke-width="2" id="path22"/>
                    
                    <path d="M 96 420 h 24 v 40 h -48 Z" fill="#3d3" stroke="#fff" stroke-width="2" id="path26" class=""/>
                </g>
                
                
                
                
                <g id="g11048" transform="translate(0,-2.7672119)" class="">
                    <rect style="fill:#b0dceb;fill-opacity:1;stroke:#fff;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" id="rect7925" width="46.221607" height="27.315125" x="501.40842" y="429.10965"/>
                    <path style="fill:none;stroke:#490f92;stroke-width:3.6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 510.76874,434.58056 v 16.35487" id="path9124"/>
                    <path style="fill:none;stroke:#490f92;stroke-width:3.6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 526.0211,436.6151 -7.81082,6.64035 7.61586,6.43247" id="path9885"/>
                    <path style="fill:none;stroke:#490f92;stroke-width:3.6;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 539.43881,436.6151 -7.81082,6.64035 7.61586,6.43247" id="path10346"/>
                </g>
                
                <rect style="fill:#b0dceb;fill-opacity:1;stroke:#490f92;stroke-width:3.6;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" id="rect11400" width="21.318359" height="21.318359" x="576.03088" y="429.34082"/>
            </g></svg>
SVG preview


代码: 全选

[[3,6],[-5,3,7,8,4,1,2,6,9,5],[5,6,7,3,8,7,4,8,1,4,2,1,6,2,9,6,5,9],[-5,6,2,1,5,9],[5,9,7,3,8,7,4,8,1,4,1,2,2,6,9,6,9,5,5,1],[-5,5,1,0],[0,9,7,3,8,7,4,8,1,4,1,2,2,6,9,6,9,5,1,5,0,1],[-5,9,8,7,3],[0,3,3,7,7,8,4,8,1,4,1,2,2,6,9,6,9,5,1,5,0,1,8,9],[-5,0,1,2,5,8,9],[9,3,3,7,7,8,4,8,1,4,2,1,2,6,9,6,9,5,1,5,1,0,9,8,5,2,5,8],[-5,3,7],[9,7,7,3,7,8,4,8,1,4,2,1,2,6,9,6,9,5,1,5,1,0,9,8,5,2,5,8],[-5,9,5,2,1,4,0],[0,7,7,3,7,8,4,8,4,1,1,2,2,6,9,6,5,9,1,5,1,0,9,8,2,5,5,8,4,0],[-5,7,4,5,8],[0,8,7,3,7,8,4,8,4,1,1,2,2,6,9,6,5,9,1,5,1,0,9,8,2,5,5,8,4,0,7,4,4,5],[-5,0,3],[3,8,7,3,7,8,4,8,4,1,1,2,2,6,9,6,5,9,1,5,1,0,9,8,2,5,5,8,4,0,7,4,4,5,0,3]]
禁閉死不了了?
https://ejsoon.vip/
弈趣極光:享受思維樂趣
回复
  • 相似主题
    回复总数
    阅读次数
    最新帖子

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客