npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

huarongdaogame

v1.0.0

Published

This is a strategy game, called the Huarong Road.

Downloads

2

Readme

Overview

  • 华容道游戏
  • This is a strategy game, called the Huarong Road

characteristic:

  • breadth-first search 广度优先搜索
  • automatic search 自动解题
  • not optimum solution 不是最优解
  • fast 快速(横刀立马 2s 内解题)

Uasge:

  • git clone https://github.com/IceFrozen/huarongdaogame.git
  • npm install
  • node . 或者 node index.js

Quick Start:

    game$ list
        1 横刀立马
        2 横刀立马2
        
    game$  start -m 1
        开始游戏 横刀立马
        A1A1A2A2A3A3A4A4
        A1A1A2A2A3A3A4A4
        B1B1C1C1C1CB2B2
        B1B1        B2B2
        B1B1C1C1C1C1B2B2
        B1B1C1C1C1C1B2B2
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4
        
    game$  move c1 up
        A1A1A2A2A3A3A4A4
        A1A1A2A2A3A3A4A4
        B1B1C1C1C1C1B2B2
        B1B1C1C1C1C1B2B2
        B1B1        B2B2
        B1B1        B2B2
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4
        B3B3D1D1D1D1B4B4

增加游戏

放到 games 目录下 文件格式 [游戏编号].json D1 为曹操 不可变 出口为 A2 - A3 位置 实例如下 见 ./games/1.json

    {
	"name":"横刀立马",
	"local":[
			["A1","A1","A2","A2","A3","A3","A4","A4"],
			["A1","A1","A2","A2","A3","A3","A4","A4"],
			["B1","B1","00","00","00","00","B2","B2"],
			["B1","B1","00","00","00","00","B2","B2"],
			["B1","B1","C1","C1","C1","C1","B2","B2"],
			["B1","B1","C1","C1","C1","C1","B2","B2"],
			["B3","B3","D1","D1","D1","D1","B4","B4"],
			["B3","B3","D1","D1","D1","D1","B4","B4"],
			["B3","B3","D1","D1","D1","D1","B4","B4"],
			["B3","B3","D1","D1","D1","D1","B4","B4"]
	]
}

API

    命令   
    help 查看游戏
    start 开始游戏
        start -m [游戏编号]  例如 start -m 1
    move [棋子id] [方向]
        方向  见 lib constant.js 中的 DIRECTOR
            up  down  left right
            u   d     l    r 
            w   s     a    d
        ex:
            move c1 up      or  move c1 u 
			move a1 down    or  move a1 d
			move a2 left    or  move a2 l
			move a3 right   or  move a3 r
	auto -m [游戏编号]
	        auto -m 1    //自动解题 1

About The Author

Auther: Jason Lee
Mail: [email protected]