WO2018145387A1 - Coordinate matching method and apparatus for three-dimensional checkerboard - Google Patents

Coordinate matching method and apparatus for three-dimensional checkerboard Download PDF

Info

Publication number
WO2018145387A1
WO2018145387A1 PCT/CN2017/089755 CN2017089755W WO2018145387A1 WO 2018145387 A1 WO2018145387 A1 WO 2018145387A1 CN 2017089755 W CN2017089755 W CN 2017089755W WO 2018145387 A1 WO2018145387 A1 WO 2018145387A1
Authority
WO
WIPO (PCT)
Prior art keywords
chessboard
plane
grid
dimensional
coordinate
Prior art date
Application number
PCT/CN2017/089755
Other languages
French (fr)
Chinese (zh)
Inventor
张隆军
Original Assignee
湖南快玩网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 湖南快玩网络科技有限公司 filed Critical 湖南快玩网络科技有限公司
Publication of WO2018145387A1 publication Critical patent/WO2018145387A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F3/00Board games; Raffle games
    • A63F3/00173Characteristics of game boards, alone or in relation to supporting structures or playing piece
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F3/00Board games; Raffle games
    • A63F3/00173Characteristics of game boards, alone or in relation to supporting structures or playing piece
    • A63F3/00214Three-dimensional game boards
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F3/00Board games; Raffle games
    • A63F3/00173Characteristics of game boards, alone or in relation to supporting structures or playing piece
    • A63F3/00261Details of game boards, e.g. rotatable, slidable or replaceable parts, modular game boards, vertical game boards

Definitions

  • the invention relates to the technical field of chessboard coordinates, in particular to a coordinate correspondence method and device for a three-dimensional chessboard.
  • the technical problem to be solved by the present invention is to provide a coordinate correspondence method and device for a stereo chessboard in view of the above problem that the chessboard is a two-dimensional chessboard.
  • the stereo chessboard comprising at least three mutually perpendicular surfaces, each of the three surfaces being provided with a plurality of chessboards, and the coordinate origin O is disposed at an intersection of the three surfaces And setting three of the surfaces to the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
  • the coordinates of the chessboard at the intersection of the three surfaces are taken as (0, 0, 0), and the two adjacent tables are The coordinates of the intersection of the faces are (0,0,1), (0,0,2), (0,0,3)...(0,0,i), (0,1,0) ), (0, 2, 0), (0, 3, 0) ... (0, j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ...(k,0,0); where i, j and k are positive integers;
  • the method further includes:
  • each of the six surfaces is provided with a plurality of chessboards, and a coordinate correspondence relationship is established in the spatial rectangular coordinate system according to the six surfaces.
  • the six surfaces of the three-dimensional chessboard are acquired, and the six surfaces are each provided with a plurality of chessboards, and according to the six said surfaces in the spatial rectangular coordinate system Establish coordinates correspondence, including:
  • the method further includes:
  • the chessboard of the three-dimensional chessboard and the two-sided chessboard are set as one chessboard.
  • the coordinates of the three-sided chess are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i, respectively). ), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
  • the method further includes:
  • the determining the chess distance includes:
  • a coordinate matching device for a stereo board including:
  • a surface setting module configured to establish a spatial rectangular coordinate system Oxyz for the stereo chessboard, the stereo chessboard comprising at least three mutually perpendicular surfaces, three of the surfaces are provided with a plurality of chess pieces, and the coordinate origin O is set to three Position of the intersection of the surface, and three of the surfaces are respectively disposed in the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
  • a position setting module configured to use (0, 0, 0) the coordinates of the intersection of the positions of the three surfaces, and the coordinates of the intersection of the adjacent two surfaces are (0, 0) , 1), (0,0,2), (0,0,3) whil(0,0,i), (0,1,0), (0,2,0), (0,3, 0) ... (0, j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ... (k, 0, 0); where i, j And k are positive integers;
  • An array setting module configured to form a grid in the xOy plane into a grid array of k*j, and form a grid in the xOz plane into a grid array of k*i, in the yOz plane
  • the chess grid forms a grid-like array of j*i.
  • the method further includes:
  • a checkerboard corresponding module configured to acquire six surfaces of the three-dimensional chessboard, six of the surfaces are respectively provided with a plurality of chessboards, and coordinate correspondences are established in the spatial rectangular coordinate system according to the six surfaces;
  • a chess attribute setting module configured to set a chessboard at 8 vertices in the three-dimensional chessboard as a three-sided chessboard; and set a chessboard at an intersection position of two adjacent surfaces in the three-dimensional chessboard to two a chessboard; the chessboard of the three-dimensional chessboard and the two-sided chessboard are set to one chessboard;
  • the distance judging module is used for judging the chess distance.
  • the coordinate correspondence method and device for a stereo chessboard disclosed above have the following beneficial effects: establishing a Cartesian coordinate system through a chessboard to perform a chess game mechanism, thereby realizing playing chess on a stereo chessboard, which not only facilitates the user to view the chessboard, but also exercises people in entertainment. Three-dimensional ability.
  • FIG. 1 is a flowchart of a coordinate correspondence method of a stereo chessboard according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of coordinates of a stereo chessboard according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a three-dimensional chessboard according to an embodiment of the present invention.
  • the invention provides a coordinate correspondence method and device for a three-dimensional chessboard 10, the purpose of which is to realize a chess playing mechanism by establishing a Cartesian coordinate system through a chessboard, thereby realizing playing chess on a stereo chessboard, such as space go, space backgammon, space checkers, etc. It is convenient for users to view the board and also to enhance people's three-dimensional ability in entertainment.
  • FIG. 1 is a flowchart of a coordinate correspondence method of a stereo board 10 according to an embodiment of the present invention.
  • the coordinate correspondence method of the stereo board 10 includes steps S1-S3:
  • FIG. 2 is a schematic diagram of coordinates of a stereo board 10 according to an embodiment of the present invention.
  • the stereo board 10 includes at least three mutually perpendicular surfaces. Each of the three surfaces is provided with a plurality of chessboards 11, the coordinate origin O is set at the intersection of the three surfaces, and the three surfaces are respectively disposed in the xOy plane, the xOz plane and the yOz of the first quadrant. flat;
  • the coordinate correspondence method further includes step S4:
  • FIG. 3 is a schematic structural diagram of a three-dimensional chessboard 10 according to an embodiment of the present invention.
  • the six surfaces of the three-dimensional chessboard 10 are obtained, and six of the surfaces are respectively provided with a plurality of chessboards 11, And establishing a coordinate correspondence relationship according to the six said surfaces in the spatial Cartesian coordinate system.
  • Step S4 includes sub-steps S41-S42:
  • the coordinate correspondence method further includes step S5:
  • the chessboard 11 at the eight vertices in the stereo chessboard 10 is set as a three-sided chessboard 113; the chessboard 11 in the intersection position of the adjacent two said surfaces in the three-dimensional chessboard 10 is set as two sides A chessboard 112; a chessboard 11 of the three-dimensional chessboard 10 except the three-sided chessboard 113 and the two-sided chessboard 112 is set as a chessboard 111.
  • the coordinates of the three-sided chessboard 11 are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
  • each surface has four three-sided chessboards 113, each of which is connected to the three-sided chessboard 113 of two adjacent surfaces, and the three-sided chessboard 113 is on the three-dimensional chessboard 100.
  • a chessboard 11 is shared.
  • the three-sided chessboard 113 includes a bottom surface and two side surfaces to form a hollow structure and has three sides of the chessboard 11, that is, the groove of the chessboard 11 passes. Three faces are formed.
  • a plurality of the two-sided chessboards 112 are in the uppermost row, the lowermost row, the leftmost column, and the rightmost column of the grid-like array, and the positions of the three-sided chessboard 113 are removed, and the plurality of The two sides of the chessboard 112 are all connected to the two sides of the adjacent surface 112.
  • the two-sided chessboard 112 shares a single chessboard 11 in two surfaces in the three-dimensional chessboard 100.
  • the two-sided chessboard 112 includes a bottom surface and three side faces to form a hollow structure and has four sides of the chessboard.
  • the lattice 11, that is, the groove of the chessboard 11 is constituted by four faces.
  • a plurality of said one-sided chessboards 111 are chessboards 11 other than three-sided chessboard 113 and two-sided chessboards 112, the one-sided chessboard 111 including a bottom surface and four side faces to form a hollow structure and A chessboard 11 having five faces, that is, a groove of the chessboard 11 is constituted by five faces.
  • the coordinate correspondence method further includes step S6:
  • Step S6 Determine the distance of the chessboard 11.
  • Step S6 includes sub-steps S61-S63:
  • the two pieces with a distance of 1 will involve "qi", thereby utilizing the space.
  • the judgment condition of the distance d can be set differently according to different rules. For example, the backgammon not only needs to calculate whether the distance is 1, but also whether the distance is 5 and whether it is on the same straight line.
  • a coordinate corresponding device of a stereo board 10 is provided, and the coordinate corresponding device can be implemented by a computer program, and the coordinate corresponding device includes:
  • a surface setting module for establishing a spatial Cartesian coordinate system Oxyz for the three-dimensional chessboard 10, the three-dimensional chessboard 10 including at least three mutually perpendicular surfaces, each of which has a plurality of chessboards 11 and a coordinate origin O Positioning the intersections of the three surfaces, and setting the three surfaces to the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
  • a position setting module for using the coordinates of the checkerboard 11 of the intersection positions of the three surfaces as (0,0,0), the coordinates of the checkerboard 11 at the intersection of two adjacent surfaces are (0,0,1), (0,0,2), (0,0,3)... ...(0,0,i), (0,1,0), (0,2,0), (0,3,0) whil(0,j,0), (1,0,0), (2,0,0), (3,0,0)...(k,0,0); wherein i, j and k are positive integers;
  • An array setting module configured to form a grid 11 of k*j in the xOy plane, and form a grid array of k*i in the xOz plane, the yOz
  • the checkers 11 in the plane form a grid-like array of j*i.
  • a checkerboard corresponding module configured to acquire six surfaces of the three-dimensional chessboard 10, six of the surfaces are respectively provided with a plurality of chessboards 11, and coordinate correspondences are established in the spatial rectangular coordinate system according to the six surfaces .
  • the checkerboard 11 forms a grid-like array of j*i.
  • a chess attribute setting module configured to set a chessboard 11 at the eight vertices of the three-dimensional chessboard 10 as a three-sided chessboard 113; and to place the chessboard at the intersection of two adjacent surfaces of the three-dimensional chessboard 10
  • the grid 11 is set as a two-sided chessboard 112; the chessboard 11 of the three-dimensional chessboard 10 except the three-sided chessboard 113 and the two-sided chessboard 112 is set as one chessboard 111.
  • the coordinates of the three-sided chess 113 are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
  • the distance judging module is used for judging the distance of the chessboard 11. Specifically, the coordinates of the chessboard 11 are obtained; the distance between any two of the chessboards 11 is calculated; the distance is determined to be 1; if 1, the preset mechanism is executed.
  • the one or operations may constitute computer readable instructions stored on one or a computer readable medium that, when executed by an electronic device, cause the computing device to perform the operations.
  • the order in which some or all of the operations are described should not be construed as implying that the operations must be sequential. Those skilled in the art will appreciate alternative rankings that have the benefit of this specification. Moreover, it should be understood that not all operations must be present in every embodiment provided herein.
  • the word "preferred” as used herein is intended to serve as an example, instance, or illustration. Any aspect or design described as “preferred” by the text is not necessarily to be construed as being more advantageous than other aspects or designs. in contrast, The use of the word “preferred” is intended to present a concept in a specific manner.
  • the term “or” as used in this application is intended to mean an “or” or “an” That is, unless otherwise specified or clear from the context, "X employs A or B” means naturally including any one of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
  • Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • Each of the above devices or systems can perform the storage method in the corresponding method embodiment.

Abstract

A coordinate matching method for a three-dimensional checkerboard, the three-dimensional checkerboard comprising at least three mutually perpendicular surfaces. The method comprises: establishing a spatial rectangular coordinate system Oxyz for the three-dimensional checkerboard, setting the three surfaces respectively into an xOy plane, an xOz plane, and a yOz plane; setting the coordinates of key points; and forming a mesh-like array in each plane. Also disclosed is a coordinate matching apparatus for a three-dimensional checkerboard.

Description

一种立体棋盘的坐标对应方法及装置Coordinate corresponding method and device for stereo chess board 技术领域Technical field
本发明涉及棋盘坐标对应技术领域,尤其涉及一种立体棋盘的坐标对应方法及装置。The invention relates to the technical field of chessboard coordinates, in particular to a coordinate correspondence method and device for a three-dimensional chessboard.
背景技术Background technique
传统的围棋成为全世界所喜爱的智力游戏,甚至发展为专项运动,有完整的职业比赛,但这都仅限于二维围棋。Traditional Go has become a favorite intellectual game in the world, and even developed into a special sport, with a complete professional competition, but this is limited to two-dimensional Go.
随着科技的发展、技术的革新,越来越多的三维产物出现在人们的生活当中,3D打印、3D电影、虚拟现实等等。随着时间的推移,三维交互会代替简单的平面交互。因此,有必要突破传统的围棋、五子棋、跳棋,提供一项通用的三维空间棋,通过巧妙的棋盘设计,来实现空间围棋、空间五子棋、空间跳棋等,并且能解决查看、下棋等难题,从人们熟知的棋艺领域出发,在娱乐中锻炼人们的三维能力。With the development of technology and technological innovation, more and more three-dimensional products appear in people's lives, 3D printing, 3D movies, virtual reality and so on. Over time, 3D interactions replace simple plane interactions. Therefore, it is necessary to break through the traditional Go, Backgammon, and Checkers, and provide a general three-dimensional space chess. Through clever chessboard design, space chess, space backgammon, space checkers, etc. can be realized, and problems such as viewing and playing chess can be solved. Starting from the well-known field of chess, we exercise people's three-dimensional ability in entertainment.
发明内容Summary of the invention
本发明要解决的技术问题在于,针对上述现有技术中棋盘为二维棋盘的问题,提供一种立体棋盘的坐标对应方法及装置。The technical problem to be solved by the present invention is to provide a coordinate correspondence method and device for a stereo chessboard in view of the above problem that the chessboard is a two-dimensional chessboard.
本发明解决其技术问题所采用的技术方案是:The technical solution adopted by the present invention to solve the technical problem thereof is:
构造一种立体棋盘的坐标对应方法,包括:Constructing a coordinate correspondence method of a three-dimensional chessboard, comprising:
对立体棋盘建立空间直角坐标系Oxyz,所述立体棋盘包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;Establishing a spatial rectangular coordinate system Oxyz for the stereo chessboard, the stereo chessboard comprising at least three mutually perpendicular surfaces, each of the three surfaces being provided with a plurality of chessboards, and the coordinate origin O is disposed at an intersection of the three surfaces And setting three of the surfaces to the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
将三个所述表面的交点位置的棋格的坐标作为(0,0,0),相邻两个所述表 面的交叉位置的棋格的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;The coordinates of the chessboard at the intersection of the three surfaces are taken as (0, 0, 0), and the two adjacent tables are The coordinates of the intersection of the faces are (0,0,1), (0,0,2), (0,0,3)...(0,0,i), (0,1,0) ), (0, 2, 0), (0, 3, 0) ... (0, j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ...(k,0,0); where i, j and k are positive integers;
将所述xOy平面内的棋格形成k*j的网格状阵列,将所述xOz平面内的棋格形成k*i的网格状阵列,将所述yOz平面内的棋格形成j*i的网格状阵列。Forming a checkerboard in the xOy plane into a grid-like array of k*j, forming a checkerboard in the xOz plane into a grid-like array of k*i, and forming a checkerboard in the yOz plane into j* A grid-like array of i.
在本发明所述的坐标对应方法中,还包括:In the coordinate correspondence method of the present invention, the method further includes:
获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系。Obtaining six surfaces of the three-dimensional chessboard, each of the six surfaces is provided with a plurality of chessboards, and a coordinate correspondence relationship is established in the spatial rectangular coordinate system according to the six surfaces.
在本发明所述的坐标对应方法中,所述获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系,包括:In the coordinate correspondence method of the present invention, the six surfaces of the three-dimensional chessboard are acquired, and the six surfaces are each provided with a plurality of chessboards, and according to the six said surfaces in the spatial rectangular coordinate system Establish coordinates correspondence, including:
将六个所述表面中除去位于第一象限的xOy平面、xOz平面及yOz平面的三个表面的三个表面分别设置于x=k平面、y=j平面及z=i平面;Three surfaces of the six surfaces excluding the xOy plane, the xOz plane, and the yOz plane of the first quadrant are respectively disposed on the x=k plane, the y=j plane, and the z=i plane;
将所述z=i平面内的棋格形成k*j的网格状阵列,将所述y=j平面内的棋格形成k*i的网格状阵列,将所述x=k平面内的棋格形成j*i的网格状阵列。Forming a grid of k*j in the z=i plane, forming a grid of k*i in the y=j plane, and placing the x=k plane The chess grid forms a grid-like array of j*i.
在本发明所述的坐标对应方法中,还包括:In the coordinate correspondence method of the present invention, the method further includes:
将所述立体棋盘中处于8个顶点的棋格设置为三面棋格;Setting a chessboard with 8 vertices in the stereo chessboard as a three-sided chessboard;
将所述立体棋盘中处于相邻两个所述表面的交叉位置的棋格设置为二面棋格;Setting a chessboard at an intersection position of two adjacent surfaces in the three-dimensional chessboard as a two-sided chessboard;
将所述立体棋盘中除所述三面棋格及所述二面棋格的棋格设置为一面棋格。The chessboard of the three-dimensional chessboard and the two-sided chessboard are set as one chessboard.
在本发明所述的坐标对应方法中,所述三面棋格的坐标分别为(0,0,0)、(k,0,0)、(0,j,0)、(0,0,i)、(k,j,0)、(k,0,i)、(0,j,i)、(k,j,i)。In the coordinate correspondence method of the present invention, the coordinates of the three-sided chess are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i, respectively). ), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
在本发明所述的坐标对应方法中,k=j=i。In the coordinate correspondence method of the present invention, k = j = i.
在本发明所述的坐标对应方法中,还包括:In the coordinate correspondence method of the present invention, the method further includes:
判断棋格距离。Determine the chess distance.
在本发明所述的坐标对应方法中,所述判断棋格距离,包括:In the coordinate correspondence method of the present invention, the determining the chess distance includes:
获取所述棋格的坐标; Obtaining coordinates of the chessboard;
计算任意两个所述棋格的距离;Calculating the distance between any two of the chessboards;
判断所述距离所述为1,若为1,则执行预设的机制。It is judged that the distance is 1 and if it is 1, the preset mechanism is executed.
另一方面,提供一种立体棋盘的坐标对应装置,包括:In another aspect, a coordinate matching device for a stereo board is provided, including:
表面设置模块,用于对立体棋盘建立空间直角坐标系Oxyz,所述立体棋盘包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;a surface setting module, configured to establish a spatial rectangular coordinate system Oxyz for the stereo chessboard, the stereo chessboard comprising at least three mutually perpendicular surfaces, three of the surfaces are provided with a plurality of chess pieces, and the coordinate origin O is set to three Position of the intersection of the surface, and three of the surfaces are respectively disposed in the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
位置设置模块,用于将三个所述表面的交点位置的棋格的坐标作为(0,0,0),相邻两个所述表面的交叉位置的棋格的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;a position setting module, configured to use (0, 0, 0) the coordinates of the intersection of the positions of the three surfaces, and the coordinates of the intersection of the adjacent two surfaces are (0, 0) , 1), (0,0,2), (0,0,3)......(0,0,i), (0,1,0), (0,2,0), (0,3, 0) ... (0, j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ... (k, 0, 0); where i, j And k are positive integers;
阵列设置模块,用于将所述xOy平面内的棋格形成k*j的网格状阵列,将所述xOz平面内的棋格形成k*i的网格状阵列,将所述yOz平面内的棋格形成j*i的网格状阵列。An array setting module, configured to form a grid in the xOy plane into a grid array of k*j, and form a grid in the xOz plane into a grid array of k*i, in the yOz plane The chess grid forms a grid-like array of j*i.
在本发明所述的坐标对应装置中,还包括:In the coordinate corresponding device of the present invention, the method further includes:
棋盘对应模块,用于获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系;a checkerboard corresponding module, configured to acquire six surfaces of the three-dimensional chessboard, six of the surfaces are respectively provided with a plurality of chessboards, and coordinate correspondences are established in the spatial rectangular coordinate system according to the six surfaces;
棋格属性设置模块,用于将所述立体棋盘中处于8个顶点的棋格设置为三面棋格;将所述立体棋盘中处于相邻两个所述表面的交叉位置的棋格设置为二面棋格;将所述立体棋盘中除所述三面棋格及所述二面棋格的棋格设置为一面棋格;a chess attribute setting module, configured to set a chessboard at 8 vertices in the three-dimensional chessboard as a three-sided chessboard; and set a chessboard at an intersection position of two adjacent surfaces in the three-dimensional chessboard to two a chessboard; the chessboard of the three-dimensional chessboard and the two-sided chessboard are set to one chessboard;
距离判断模块,用于判断棋格距离。The distance judging module is used for judging the chess distance.
上述公开的一种立体棋盘的坐标对应方法及装置具有以下有益效果:通过棋盘建立直角坐标系执行下棋机制从而实现在立体棋盘下棋,不仅方便了用户查看棋盘,还锻炼人们在娱乐中的三维能力。The coordinate correspondence method and device for a stereo chessboard disclosed above have the following beneficial effects: establishing a Cartesian coordinate system through a chessboard to perform a chess game mechanism, thereby realizing playing chess on a stereo chessboard, which not only facilitates the user to view the chessboard, but also exercises people in entertainment. Three-dimensional ability.
附图说明DRAWINGS
图1为本发明一实施例提供的一种立体棋盘的坐标对应方法的流程图; 1 is a flowchart of a coordinate correspondence method of a stereo chessboard according to an embodiment of the present invention;
图2为本发明一实施例提供的一种立体棋盘的坐标示意图;2 is a schematic diagram of coordinates of a stereo chessboard according to an embodiment of the present invention;
图3为本发明一实施例提供的一种立体棋盘的结构示意图。FIG. 3 is a schematic structural diagram of a three-dimensional chessboard according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供了一种立体棋盘10的坐标对应方法及装置,其目的在于,通过棋盘建立直角坐标系执行下棋机制从而实现在立体棋盘下棋,例如空间围棋、空间五子棋、空间跳棋等,不仅方便了用户查看棋盘,还锻炼人们在娱乐中的三维能力。The invention provides a coordinate correspondence method and device for a three-dimensional chessboard 10, the purpose of which is to realize a chess playing mechanism by establishing a Cartesian coordinate system through a chessboard, thereby realizing playing chess on a stereo chessboard, such as space go, space backgammon, space checkers, etc. It is convenient for users to view the board and also to enhance people's three-dimensional ability in entertainment.
参见图1,图1为本发明一实施例提供的一种立体棋盘10的坐标对应方法的流程图,该立体棋盘10的坐标对应方法包括步骤S1-S3:Referring to FIG. 1, FIG. 1 is a flowchart of a coordinate correspondence method of a stereo board 10 according to an embodiment of the present invention. The coordinate correspondence method of the stereo board 10 includes steps S1-S3:
S1、对立体棋盘10建立空间直角坐标系Oxyz,参见图2,图2为本发明一实施例提供的一种立体棋盘10的坐标示意图,所述立体棋盘10包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格11,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;S1, a spatial rectangular coordinate system Oxyz is established for the stereo board 10, see FIG. 2, which is a schematic diagram of coordinates of a stereo board 10 according to an embodiment of the present invention. The stereo board 10 includes at least three mutually perpendicular surfaces. Each of the three surfaces is provided with a plurality of chessboards 11, the coordinate origin O is set at the intersection of the three surfaces, and the three surfaces are respectively disposed in the xOy plane, the xOz plane and the yOz of the first quadrant. flat;
S2、将三个所述表面的交点位置的棋格11的坐标作为(0,0,0),相邻两个所述表面的交叉位置的棋格11的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;优选的,k=j=i。S2, the coordinates of the checkerboard 11 at the intersection of the three surfaces are taken as (0, 0, 0), and the coordinates of the checkerboard 11 of the intersection positions of two adjacent surfaces are respectively (0, 0, 1). ), (0,0,2), (0,0,3)......(0,0,i), (0,1,0), (0,2,0), (0,3,0) ...(0,j,0), (1,0,0), (2,0,0), (3,0,0)......(k,0,0); where i, j, and k All are positive integers; preferably, k=j=i.
S3、将所述xOy平面内的棋格11形成k*j的网格状阵列,将所述xOz平面内的棋格11形成k*i的网格状阵列,将所述yOz平面内的棋格11形成j*i的网格状阵列。S3, forming a grid 11 of k*j in the xOy plane, forming a grid 11 of k*i in the xOz plane, and playing the chess in the yOz plane The grid 11 forms a grid-like array of j*i.
优选的,该坐标对应方法还包括步骤S4:Preferably, the coordinate correspondence method further includes step S4:
S4、参见图3,图3为本发明一实施例提供的一种立体棋盘10的结构示意图,获取所述立体棋盘10的六个表面,六个所述表面均开设有多个棋格11, 并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系。步骤S4包括子步骤S41-S42:S4, FIG. 3, FIG. 3 is a schematic structural diagram of a three-dimensional chessboard 10 according to an embodiment of the present invention. The six surfaces of the three-dimensional chessboard 10 are obtained, and six of the surfaces are respectively provided with a plurality of chessboards 11, And establishing a coordinate correspondence relationship according to the six said surfaces in the spatial Cartesian coordinate system. Step S4 includes sub-steps S41-S42:
S41、将六个所述表面中除去位于第一象限的xOy平面、xOz平面及yOz平面的三个表面的三个表面分别设置于x=k平面、y=j平面及z=i平面;S41. The three surfaces of the six surfaces in which the xOy plane, the xOz plane, and the yOz plane of the first quadrant are removed are respectively disposed on the x=k plane, the y=j plane, and the z=i plane;
S42、将所述z=i平面内的棋格11形成k*j的网格状阵列,将所述y=j平面内的棋格11形成k*i的网格状阵列,将所述x=k平面内的棋格11形成j*i的网格状阵列。S42, forming a grid array of k*j in the z=i plane, and forming a grid array of k*i in the y=j plane into a grid array of k*i, The checkerboard 11 in the =k plane forms a grid-like array of j*i.
优选的,该坐标对应方法还包括步骤S5:Preferably, the coordinate correspondence method further includes step S5:
S5、将所述立体棋盘10中处于8个顶点的棋格11设置为三面棋格113;将所述立体棋盘10中处于相邻两个所述表面的交叉位置的棋格11设置为二面棋格112;将所述立体棋盘10中除所述三面棋格113及所述二面棋格112的棋格11设置为一面棋格111。所述三面棋格11的坐标分别为(0,0,0)、(k,0,0)、(0,j,0)、(0,0,i)、(k,j,0)、(k,0,i)、(0,j,i)、(k,j,i)。S5, the chessboard 11 at the eight vertices in the stereo chessboard 10 is set as a three-sided chessboard 113; the chessboard 11 in the intersection position of the adjacent two said surfaces in the three-dimensional chessboard 10 is set as two sides A chessboard 112; a chessboard 11 of the three-dimensional chessboard 10 except the three-sided chessboard 113 and the two-sided chessboard 112 is set as a chessboard 111. The coordinates of the three-sided chessboard 11 are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
参见图3,一般的,每个表面具有四个三面棋格113,每个三面棋格113均与相邻的两个表面的三面棋格113相连为一体,三面棋格113即在立体棋盘100中的三个表面中共用一个棋格11,如图,所述三面棋格113包括一个底面及两个侧面以形成中空结构且具有三个面的棋格11,即棋格11的凹槽通过三个面构成。Referring to FIG. 3, in general, each surface has four three-sided chessboards 113, each of which is connected to the three-sided chessboard 113 of two adjacent surfaces, and the three-sided chessboard 113 is on the three-dimensional chessboard 100. In the three surfaces of the three, a chessboard 11 is shared. As shown in the figure, the three-sided chessboard 113 includes a bottom surface and two side surfaces to form a hollow structure and has three sides of the chessboard 11, that is, the groove of the chessboard 11 passes. Three faces are formed.
每个表面中,多个所述二面棋格112于所述网格状阵列中的最上一行、最下一行、最左一列及最右一列且除去三面棋格113的位置,多个所述二面棋格112均与相邻的表面的二面棋格112相连为一体。二面棋格112即在立体棋盘100中的两个表面中共用一个棋格11,如图,所述二面棋格112包括一个底面及三个侧面以形成中空结构且具有四个面的棋格11,即棋格11的凹槽通过四个面构成。In each surface, a plurality of the two-sided chessboards 112 are in the uppermost row, the lowermost row, the leftmost column, and the rightmost column of the grid-like array, and the positions of the three-sided chessboard 113 are removed, and the plurality of The two sides of the chessboard 112 are all connected to the two sides of the adjacent surface 112. The two-sided chessboard 112 shares a single chessboard 11 in two surfaces in the three-dimensional chessboard 100. As shown in the figure, the two-sided chessboard 112 includes a bottom surface and three side faces to form a hollow structure and has four sides of the chessboard. The lattice 11, that is, the groove of the chessboard 11 is constituted by four faces.
每个表面中,多个所述一面棋格111为除三面棋格113及二面棋格112之外的棋格11,所述一面棋格111包括一个底面及四个侧面以形成中空结构且具有五个面的棋格11,即棋格11的凹槽通过五个面构成。In each surface, a plurality of said one-sided chessboards 111 are chessboards 11 other than three-sided chessboard 113 and two-sided chessboards 112, the one-sided chessboard 111 including a bottom surface and four side faces to form a hollow structure and A chessboard 11 having five faces, that is, a groove of the chessboard 11 is constituted by five faces.
优选的,该坐标对应方法还包括步骤S6: Preferably, the coordinate correspondence method further includes step S6:
S6、判断棋格11距离。步骤S6包括子步骤S61-S63:S6. Determine the distance of the chessboard 11. Step S6 includes sub-steps S61-S63:
S61、获取所述棋格11的坐标;S61. Acquire coordinates of the chessboard 11;
S62、计算任意两个所述棋格11的距离;S62. Calculate a distance between any two of the chessboards 11;
S63、判断所述距离所述为1,若为1,则执行预设的机制。以立体围棋为例,由于现有的围棋均为二维围棋,而围棋中“吃子”是执行游戏规则中较为重要的一环。因此,在立体围棋中如何吃子,是需要攻克的难题。“吃子”作为围棋术语,也可称“提子”。在实战对局中,一方将另一方的一个或多个棋子紧紧包围,使其所有的气数被全部堵住(即其所有紧紧相邻的交叉点全部被占有),随后将无气的棋子从棋盘上拿掉,就叫“吃子”。在围棋对局中,棋子在棋盘上是依赖“气”来生存的,若想学会如何吃子就必须先了解“气”。“气”是围棋基本术语之一,是指在棋盘上与棋子紧紧相邻的空交叉点,没有“气”的棋子叫“死子”,也就是说,只有无“气”的“死子”才可以被提,棋盘上任何一个棋子,只要它还有一口“气”数,那它就依然可以放置在棋盘上。此时,两个棋子之间的距离便显得尤为重要。尤其在于本发明提供的立体棋盘10,其建立与坐标对应的关系,便可计算棋子之间的距离,一般的,距离为1的两个棋子之间会涉及到“气”,由此借助空间直角坐标系,计算距离并判断距离是否为1,其中,计算距离的方法为:假设第一棋子的坐标为(x1,y1,z1),第二棋子的坐标为(x2,y2,z2),距离
Figure PCTCN2017089755-appb-000001
距离d的判断条件可以根据不同规则设置不同,如五子棋不仅需要计算距离是否为1,还要计算距离是否为5以及是否处于同一直线上。
S63. Determine that the distance is 1, and if it is 1, perform a preset mechanism. Taking the three-dimensional chess as an example, since the existing Go is a two-dimensional Go, the "eat" in the Go is an important part of the execution of the game rules. Therefore, how to eat in the three-dimensional chess is a difficult problem to overcome. "Eat" is a term of Go, and it can also be called "Kit". In a actual game, one party tightly encloses one or more pieces of the other party, so that all the gas numbers are completely blocked (that is, all their closely adjacent intersections are occupied), and then will be airless. When the piece is removed from the board, it is called "eat". In the Go game, the pieces rely on "qi" to survive on the board. If you want to learn how to eat, you must first understand "qi". "Qi" is one of the basic terms of Go, which refers to the empty intersection on the board that is closely adjacent to the chess piece. The piece without "qi" is called "dead", that is, only "no" The child can be mentioned, any piece on the board, as long as it has a "qi" number, it can still be placed on the board. At this point, the distance between the two pieces is particularly important. In particular, the stereo board 10 provided by the present invention establishes a relationship corresponding to the coordinates, and can calculate the distance between the pieces. Generally, the two pieces with a distance of 1 will involve "qi", thereby utilizing the space. In a Cartesian coordinate system, calculate the distance and determine whether the distance is 1, wherein the method of calculating the distance is: assuming that the coordinates of the first piece are (x1, y1, z1) and the coordinates of the second piece are (x2, y2, z2), distance
Figure PCTCN2017089755-appb-000001
The judgment condition of the distance d can be set differently according to different rules. For example, the backgammon not only needs to calculate whether the distance is 1, but also whether the distance is 5 and whether it is on the same straight line.
另一方面,提供一种立体棋盘10的坐标对应装置,该坐标对应装置可以通过计算机程序实现,该坐标对应装置包括:In another aspect, a coordinate corresponding device of a stereo board 10 is provided, and the coordinate corresponding device can be implemented by a computer program, and the coordinate corresponding device includes:
表面设置模块,用于对立体棋盘10建立空间直角坐标系Oxyz,所述立体棋盘10包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格11,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;a surface setting module for establishing a spatial Cartesian coordinate system Oxyz for the three-dimensional chessboard 10, the three-dimensional chessboard 10 including at least three mutually perpendicular surfaces, each of which has a plurality of chessboards 11 and a coordinate origin O Positioning the intersections of the three surfaces, and setting the three surfaces to the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
位置设置模块,用于将三个所述表面的交点位置的棋格11的坐标作为 (0,0,0),相邻两个所述表面的交叉位置的棋格11的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;a position setting module for using the coordinates of the checkerboard 11 of the intersection positions of the three surfaces as (0,0,0), the coordinates of the checkerboard 11 at the intersection of two adjacent surfaces are (0,0,1), (0,0,2), (0,0,3)... ...(0,0,i), (0,1,0), (0,2,0), (0,3,0)......(0,j,0), (1,0,0), (2,0,0), (3,0,0)...(k,0,0); wherein i, j and k are positive integers;
阵列设置模块,用于将所述xOy平面内的棋格11形成k*j的网格状阵列,将所述xOz平面内的棋格11形成k*i的网格状阵列,将所述yOz平面内的棋格11形成j*i的网格状阵列。An array setting module, configured to form a grid 11 of k*j in the xOy plane, and form a grid array of k*i in the xOz plane, the yOz The checkers 11 in the plane form a grid-like array of j*i.
棋盘对应模块,用于获取所述立体棋盘10的六个表面,六个所述表面均开设有多个棋格11,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系。将六个所述表面中除去位于第一象限的xOy平面、xOz平面及yOz平面的三个表面的三个表面分别设置于x=k平面、y=j平面及z=i平面;将所述z=i平面内的棋格11形成k*j的网格状阵列,将所述y=j平面内的棋格11形成k*i的网格状阵列,将所述x=k平面内的棋格11形成j*i的网格状阵列。a checkerboard corresponding module, configured to acquire six surfaces of the three-dimensional chessboard 10, six of the surfaces are respectively provided with a plurality of chessboards 11, and coordinate correspondences are established in the spatial rectangular coordinate system according to the six surfaces . Three surfaces of the six surfaces excluding the xOy plane, the xOz plane, and the yOz plane of the first quadrant are respectively disposed on the x=k plane, the y=j plane, and the z=i plane; The checkerboard 11 in the z=i plane forms a grid-like array of k*j, and the checkerboard 11 in the y=j plane forms a grid-like array of k*i, which is in the x=k plane The checkerboard 11 forms a grid-like array of j*i.
棋格属性设置模块,用于将所述立体棋盘10中处于8个顶点的棋格11设置为三面棋格113;将所述立体棋盘10中处于相邻两个所述表面的交叉位置的棋格11设置为二面棋格112;将所述立体棋盘10中除所述三面棋格113及所述二面棋格112的棋格11设置为一面棋格111。所述三面棋格113的坐标分别为(0,0,0)、(k,0,0)、(0,j,0)、(0,0,i)、(k,j,0)、(k,0,i)、(0,j,i)、(k,j,i)。a chess attribute setting module, configured to set a chessboard 11 at the eight vertices of the three-dimensional chessboard 10 as a three-sided chessboard 113; and to place the chessboard at the intersection of two adjacent surfaces of the three-dimensional chessboard 10 The grid 11 is set as a two-sided chessboard 112; the chessboard 11 of the three-dimensional chessboard 10 except the three-sided chessboard 113 and the two-sided chessboard 112 is set as one chessboard 111. The coordinates of the three-sided chess 113 are (0, 0, 0), (k, 0, 0), (0, j, 0), (0, 0, i), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
距离判断模块,用于判断棋格11距离。具体的,获取所述棋格11的坐标;计算任意两个所述棋格11的距离;判断所述距离所述为1,若为1,则执行预设的机制。The distance judging module is used for judging the distance of the chessboard 11. Specifically, the coordinates of the chessboard 11 are obtained; the distance between any two of the chessboards 11 is calculated; the distance is determined to be 1; if 1, the preset mechanism is executed.
本文提供了实施例的各种操作。在一个实施例中,所述的一个或操作可以构成一个或计算机可读介质上存储的计算机可读指令,其在被电子设备执行时将使得计算设备执行所述操作。描述一些或所有操作的顺序不应当被解释为暗示这些操作必需是顺序相关的。本领域技术人员将理解具有本说明书的益处的可替代的排序。而且,应当理解,不是所有操作必需在本文所提供的每个实施例中存在。Various operations of the embodiments are provided herein. In one embodiment, the one or operations may constitute computer readable instructions stored on one or a computer readable medium that, when executed by an electronic device, cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as implying that the operations must be sequential. Those skilled in the art will appreciate alternative rankings that have the benefit of this specification. Moreover, it should be understood that not all operations must be present in every embodiment provided herein.
而且,本文所使用的词语“优选的”意指用作实例、示例或例证。奉文描述为“优选的”任意方面或设计不必被解释为比其他方面或设计更有利。相反, 词语“优选的”的使用旨在以具体方式提出概念。如本申请中所使用的术语“或”旨在意指包含的“或”而非排除的“或”。即,除非另外指定或从上下文中清楚,“X使用A或B”意指自然包括排列的任意一个。即,如果X使用A;X使用B;或X使用A和B二者,则“X使用A或B”在前述任一示例中得到满足。Moreover, the word "preferred" as used herein is intended to serve as an example, instance, or illustration. Any aspect or design described as "preferred" by the text is not necessarily to be construed as being more advantageous than other aspects or designs. in contrast, The use of the word "preferred" is intended to present a concept in a specific manner. The term "or" as used in this application is intended to mean an "or" or "an" That is, unless otherwise specified or clear from the context, "X employs A or B" means naturally including any one of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
而且,尽管已经相对于一个或实现方式示出并描述了本公开,但是本领域技术人员基于对本说明书和附图的阅读和理解将会想到等价变型和修改。本公开包括所有这样的修改和变型,并且仅由所附权利要求的范围限制。特别地关于由上述组件(例如元件等)执行的各种功能,用于描述这样的组件的术语旨在对应于执行所述组件的指定功能(例如其在功能上是等价的)的任意组件(除非另外指示),即使在结构上与执行本文所示的本公开的示范性实现方式中的功能的公开结构不等同。此外,尽管本公开的特定特征已经相对于若干实现方式中的仅一个被公开,但是这种特征可以与如可以对给定或特定应用而言是期望和有利的其他实现方式的一个或其他特征组合。而且,就术语“包括”、“具有”、“含有”或其变形被用在具体实施方式或权利要求中而言,这样的术语旨在以与术语“包含”相似的方式包括。Rather, the present invention has been shown and described with respect to the embodiments of the invention. The present disclosure includes all such modifications and variations, and is only limited by the scope of the appended claims. With particular regard to various functions performed by the above-described components (e.g., elements, etc.), the terms used to describe such components are intended to correspond to any component that performs the specified function of the component (e.g., it is functionally equivalent). (Unless otherwise indicated), the structure is not identical to the disclosed structure that performs the functions in the exemplary implementations of the present disclosure shown herein. Moreover, although certain features of the present disclosure have been disclosed with respect to only one of several implementations, such features may be combined with one or other features of other implementations as may be desired and advantageous for a given or particular application. combination. Furthermore, the terms "comprising," "having," "having," or "include" or "comprising" are used in the particular embodiments or claims, and such terms are intended to be encompassed in a manner similar to the term "comprising."
本发明实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以多个或多个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的存储方法。Each functional unit in the embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium. The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Each of the above devices or systems can perform the storage method in the corresponding method embodiment.
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。 In the above, the present invention has been disclosed in the above preferred embodiments, but the preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various modifications without departing from the spirit and scope of the invention. The invention is modified and retouched, and the scope of the invention is defined by the scope defined by the claims.

Claims (10)

  1. 一种立体棋盘的坐标对应方法,其特征在于,包括:A coordinate correspondence method for a three-dimensional chessboard, characterized in that it comprises:
    对立体棋盘建立空间直角坐标系Oxyz,所述立体棋盘包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;Establishing a spatial rectangular coordinate system Oxyz for the stereo chessboard, the stereo chessboard comprising at least three mutually perpendicular surfaces, each of the three surfaces being provided with a plurality of chessboards, and the coordinate origin O is disposed at an intersection of the three surfaces And setting three of the surfaces to the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
    将三个所述表面的交点位置的棋格的坐标作为(0,0,0),相邻两个所述表面的交叉位置的棋格的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;The coordinates of the chessboard at the intersection of the three surfaces are taken as (0, 0, 0), and the coordinates of the intersections of the adjacent two surfaces are (0, 0, 1), (0). , 0, 2), (0, 0, 3) ... (0, 0, i), (0, 1, 0), (0, 2, 0), (0, 3, 0) ... (0 , j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ... (k, 0, 0); where i, j, and k are positive integers ;
    将所述xOy平面内的棋格形成k*j的网格状阵列,将所述xOz平面内的棋格形成k*i的网格状阵列,将所述yOz平面内的棋格形成j*i的网格状阵列。Forming a checkerboard in the xOy plane into a grid-like array of k*j, forming a checkerboard in the xOz plane into a grid-like array of k*i, and forming a checkerboard in the yOz plane into j* A grid-like array of i.
  2. 根据权利要求1所述的坐标对应方法,其特征在于,还包括:The coordinate correspondence method according to claim 1, further comprising:
    获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系。Obtaining six surfaces of the three-dimensional chessboard, each of the six surfaces is provided with a plurality of chessboards, and a coordinate correspondence relationship is established in the spatial rectangular coordinate system according to the six surfaces.
  3. 根据权利要求2所述的坐标对应方法,其特征在于,所述获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系,包括:The coordinate correspondence method according to claim 2, wherein said acquiring six surfaces of said three-dimensional chessboard, each of said six surfaces is provided with a plurality of chess pieces, and said six according to said surface The coordinate correspondence is established in the space rectangular coordinate system, including:
    将六个所述表面中除去位于第一象限的xOy平面、xOz平面及yOz平面的三个表面的三个表面分别设置于x=k平面、y=j平面及z=i平面;Three surfaces of the six surfaces excluding the xOy plane, the xOz plane, and the yOz plane of the first quadrant are respectively disposed on the x=k plane, the y=j plane, and the z=i plane;
    将所述z=i平面内的棋格形成k*j的网格状阵列,将所述y=j平面内的棋格形成k*i的网格状阵列,将所述x=k平面内的棋格形成j*i的网格状阵列。Forming a grid of k*j in the z=i plane, forming a grid of k*i in the y=j plane, and placing the x=k plane The chess grid forms a grid-like array of j*i.
  4. 根据权利要求3所述的坐标对应方法,其特征在于,还包括:The coordinate correspondence method according to claim 3, further comprising:
    将所述立体棋盘中处于8个顶点的棋格设置为三面棋格;Setting a chessboard with 8 vertices in the stereo chessboard as a three-sided chessboard;
    将所述立体棋盘中处于相邻两个所述表面的交叉位置的棋格设置为二面棋格;Setting a chessboard at an intersection position of two adjacent surfaces in the three-dimensional chessboard as a two-sided chessboard;
    将所述立体棋盘中除所述三面棋格及所述二面棋格的棋格设置为一面棋格。 The chessboard of the three-dimensional chessboard and the two-sided chessboard are set as one chessboard.
  5. 根据权利要求4所述的坐标对应方法,其特征在于,所述三面棋格的坐标分别为(0,0,0)、(k,0,0)、(0,j,0)、(0,0,i)、(k,j,0)、(k,0,i)、(0,j,i)、(k,j,i)。The coordinate correspondence method according to claim 4, wherein the coordinates of the three-sided chess are (0, 0, 0), (k, 0, 0), (0, j, 0), (0), respectively. , 0, i), (k, j, 0), (k, 0, i), (0, j, i), (k, j, i).
  6. 根据权利要求5所述的坐标对应方法,其特征在于,k=j=i。The coordinate correspondence method according to claim 5, wherein k = j = i.
  7. 根据权利要求1所述的坐标对应方法,其特征在于,还包括:The coordinate correspondence method according to claim 1, further comprising:
    判断棋格距离。Determine the chess distance.
  8. 根据权利要求7所述的坐标对应方法,其特征在于,所述判断棋格距离,包括:The coordinate correspondence method according to claim 7, wherein the determining the chess distance comprises:
    获取所述棋格的坐标;Obtaining coordinates of the chessboard;
    计算任意两个所述棋格的距离;Calculating the distance between any two of the chessboards;
    判断所述距离所述为1,若为1,则执行预设的机制。It is judged that the distance is 1 and if it is 1, the preset mechanism is executed.
  9. 一种立体棋盘的坐标对应装置,其特征在于,包括:A coordinate matching device for a three-dimensional chessboard, characterized in that it comprises:
    表面设置模块,用于对立体棋盘建立空间直角坐标系Oxyz,所述立体棋盘包括至少三个相互垂直的表面,三个所述表面均开设有多个棋格,将坐标原点O设置于三个所述表面的交点位置,并将三个所述表面分别设置于第一象限的xOy平面、xOz平面及yOz平面;a surface setting module, configured to establish a spatial rectangular coordinate system Oxyz for the stereo chessboard, the stereo chessboard comprising at least three mutually perpendicular surfaces, three of the surfaces are provided with a plurality of chess pieces, and the coordinate origin O is set to three Position of the intersection of the surface, and three of the surfaces are respectively disposed in the xOy plane, the xOz plane, and the yOz plane of the first quadrant;
    位置设置模块,用于将三个所述表面的交点位置的棋格的坐标作为(0,0,0),相邻两个所述表面的交叉位置的棋格的坐标分别为(0,0,1)、(0,0,2)、(0,0,3)……(0,0,i)、(0,1,0)、(0,2,0)、(0,3,0)……(0,j,0)、(1,0,0)、(2,0,0)、(3,0,0)……(k,0,0);其中,i、j及k均为正整数;a position setting module, configured to use (0, 0, 0) the coordinates of the intersection of the positions of the three surfaces, and the coordinates of the intersection of the adjacent two surfaces are (0, 0) , 1), (0,0,2), (0,0,3)......(0,0,i), (0,1,0), (0,2,0), (0,3, 0) ... (0, j, 0), (1, 0, 0), (2, 0, 0), (3, 0, 0) ... (k, 0, 0); where i, j And k are positive integers;
    阵列设置模块,用于将所述xOy平面内的棋格形成k*j的网格状阵列,将所述xOz平面内的棋格形成k*i的网格状阵列,将所述yOz平面内的棋格形成j*i的网格状阵列。An array setting module, configured to form a grid in the xOy plane into a grid array of k*j, and form a grid in the xOz plane into a grid array of k*i, in the yOz plane The chess grid forms a grid-like array of j*i.
  10. 根据权利要求4所述的坐标对应装置,其特征在于,还包括:The coordinate corresponding device according to claim 4, further comprising:
    棋盘对应模块,用于获取所述立体棋盘的六个表面,六个所述表面均开设有多个棋格,并根据六个所述表面于所述空间直角坐标系中建立坐标对应关系;a checkerboard corresponding module, configured to acquire six surfaces of the three-dimensional chessboard, six of the surfaces are respectively provided with a plurality of chessboards, and coordinate correspondences are established in the spatial rectangular coordinate system according to the six surfaces;
    棋格属性设置模块,用于将所述立体棋盘中处于8个顶点的棋格设置为三面棋格;将所述立体棋盘中处于相邻两个所述表面的交叉位置的棋格设置为二面棋格;将所述立体棋盘中除所述三面棋格及所述二面棋格的棋格设置为一面 棋格;a chess attribute setting module, configured to set a chessboard at 8 vertices in the three-dimensional chessboard as a three-sided chessboard; and set a chessboard at an intersection position of two adjacent surfaces in the three-dimensional chessboard to two Setting a chessboard; setting the chessboard of the three-dimensional chessboard and the two-sided chessboard to one side of the three-dimensional chessboard Chess
    距离判断模块,用于判断棋格距离。 The distance judging module is used for judging the chess distance.
PCT/CN2017/089755 2017-02-07 2017-06-23 Coordinate matching method and apparatus for three-dimensional checkerboard WO2018145387A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710068285.6 2017-02-07
CN201710068285.6A CN106823361A (en) 2017-02-07 2017-02-07 The coordinate corresponding method and device of a kind of Solid chess-board

Publications (1)

Publication Number Publication Date
WO2018145387A1 true WO2018145387A1 (en) 2018-08-16

Family

ID=59122212

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089755 WO2018145387A1 (en) 2017-02-07 2017-06-23 Coordinate matching method and apparatus for three-dimensional checkerboard

Country Status (2)

Country Link
CN (1) CN106823361A (en)
WO (1) WO2018145387A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106823361A (en) * 2017-02-07 2017-06-13 湖南快玩网络科技有限公司 The coordinate corresponding method and device of a kind of Solid chess-board
CN109529348B (en) * 2018-11-27 2022-10-21 山东工商学院 Method for constructing three-dimensional gobang chessboard model by using unity engine
CN112221132A (en) * 2020-10-14 2021-01-15 王军力 Method and system for applying three-dimensional weiqi to online game

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87210030U (en) * 1987-07-16 1988-03-02 斯家伟 Stereome chess or teaching set
CN2067175U (en) * 1990-05-19 1990-12-12 李建斌 Three-dimensional weiqi
CN2113807U (en) * 1992-01-23 1992-08-26 赵兵科 Three-dimensional game 'weiqi'
CN1691040A (en) * 2004-04-30 2005-11-02 韩震宇 Method for demonstrating 3D framework chess by a computer
CN106823361A (en) * 2017-02-07 2017-06-13 湖南快玩网络科技有限公司 The coordinate corresponding method and device of a kind of Solid chess-board

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0999133A (en) * 1995-10-04 1997-04-15 Masayuki Watabiki Onboard game procedure automatic recorder
CN105854290A (en) * 2016-03-31 2016-08-17 湖南快玩网络科技有限公司 Software implementation method for three-dimensional go
CN105854299A (en) * 2016-03-31 2016-08-17 湖南快玩网络科技有限公司 Software implementation method for hexagonal chess

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN87210030U (en) * 1987-07-16 1988-03-02 斯家伟 Stereome chess or teaching set
CN2067175U (en) * 1990-05-19 1990-12-12 李建斌 Three-dimensional weiqi
CN2113807U (en) * 1992-01-23 1992-08-26 赵兵科 Three-dimensional game 'weiqi'
CN1691040A (en) * 2004-04-30 2005-11-02 韩震宇 Method for demonstrating 3D framework chess by a computer
CN106823361A (en) * 2017-02-07 2017-06-13 湖南快玩网络科技有限公司 The coordinate corresponding method and device of a kind of Solid chess-board

Also Published As

Publication number Publication date
CN106823361A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
WO2018145387A1 (en) Coordinate matching method and apparatus for three-dimensional checkerboard
US20100259001A1 (en) Spatial logical toy
US6237914B1 (en) Multi dimensional puzzle
US20100237561A1 (en) Toy block assembly puzzle
US6648330B2 (en) Three dimensional puzzle
US11123631B2 (en) Education, logic, and puzzle systems, methods, and techniques
KR101622351B1 (en) Block teaching and playing tool
US9162139B2 (en) Cube puzzle
CN106994240B (en) Three-dimensional chessboard and its falling method
JP4706965B2 (en) Image generation program and image generation apparatus
JP2020513946A (en) Hexagonal board and hexahedron board
KR20230130802A (en) Multi Dimension Baduk Board And Online Multi Dimension Baduk System
US20110031687A1 (en) Three Dimensional Sudoku Cube Puzzle
TWI790115B (en) Model displaying device
WO2009057910A1 (en) Game system using cubic baduk board and method thereof
WO2018016355A1 (en) Puzzle system and control method thereof
TWM566609U (en) Intelligent puzzle block
CN207532749U (en) A kind of Solid chess-board
WO2018145389A1 (en) Six-sided touch chessboard
CN107648835B (en) Three-dimensional chessboard and three-dimensional chess
US20100276882A1 (en) Player Designable Game Board and Parlor Games Playable Thereon
TW200847078A (en) Algorithm for a magic cube and method of teaching and illustrating the same
TW200817074A (en) New intelligent devices
KR20100034195A (en) Dimensional puzzle set
Zheng et al. Interactive Design and Optics-Based Visualization of Arbitrary Non-Euclidean Kaleidoscopic Orbifolds

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896117

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896117

Country of ref document: EP

Kind code of ref document: A1