/GoVariation

围棋的各种变种形式,网页js实现-copy

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

围棋变种


项目介绍

这个项目是围棋创新设计实验。目前还在测试阶段,只能在自己电脑本地自己玩。

体验方法

  1. 下载项目到本地(电脑端),用浏览器打开 index.html 文件
  2. 通过这个链接查看,进入github page

已经实现的

多玩家一盘棋、每个玩家的棋子有不同的颜色。

棋盘大小自定义:可以设置成长方形,长条形状。或者非常大的形状。

棋盘中含有障碍物:“石头”。

棋盘中包含能够移动的障碍物:“火石”。

待实现的

正三角形网格棋盘

正六边形网格棋盘

项目结构

js文件结构:GameObject数字枚举棋盘上的物品种类,就是各种颜色的棋子、空气、墙体(石头)、火石等。

棋盘数据会用二维数组保存 int[][]

下面是英文翻译,给外国人看的

Variations of Go


Project introduction

This project is an experiment of innovative design of Go. At present, it is still in the testing stage and can only be played locally on your own computer.

Experience method

Download the project to the local (computer side) and open index Html file

or click this link to play.

Implemented

Each player has different colors in a chess game.

Chessboard size customization: it can be set into rectangle and strip shape. Or very large shapes.

The chessboard contains an obstacle: "stone".

The chessboard contains movable obstacles: "flint".

To be realized

Regular triangle grid chessboard

Hexagonal grid chessboard

Project Structure

Js file structure: GameObject numerically enumerates the types of items on the chessboard, including chessmen, air, walls (stones), flints, etc. of various colors.

Chessboard data will be saved in two-dimensional array int [] []