CN1691040A - Method for demonstrating 3D framework chess by a computer - Google Patents

Method for demonstrating 3D framework chess by a computer Download PDF

Info

Publication number
CN1691040A
CN1691040A CNA2004100122630A CN200410012263A CN1691040A CN 1691040 A CN1691040 A CN 1691040A CN A2004100122630 A CNA2004100122630 A CN A2004100122630A CN 200410012263 A CN200410012263 A CN 200410012263A CN 1691040 A CN1691040 A CN 1691040A
Authority
CN
China
Prior art keywords
chess
function
chessboard
definition
utilization
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CNA2004100122630A
Other languages
Chinese (zh)
Inventor
韩震宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNA2004100122630A priority Critical patent/CN1691040A/en
Publication of CN1691040A publication Critical patent/CN1691040A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to method to demonstrate three-dimensional solid space frame chess, which is fit to go, Chinese chess, chess, Chinese draught, and quintet game, also can realize network game. The main method is that setup interface by adding variety and global functions, use adding chessboard to plot function and build three-dimensional coordinate; plot chess frame structure along chessboard axis to initial game; finally, define chess function and play rule. This invention is benefit to use computer to overcome the limit that playing chess can be only on plane by multiple visual angles and multiple windows, and at last achieve play chess on three-dimensional solid space with creative idea de effect to run freely from top to down, left to right and backwards to forwards; it not only increases player interesting, but also expands their thinking way.

Description

Method with computer demonstration three-dimensional space framework chess
Technical field
The present invention relates to a kind of method with computer demonstration three-dimensional space framework chess.It is applicable to go, Chinese chess, chess, Chinese checkers, quintet game etc.Can also realize online game.
Background technology
All chess games now all only are confined to the scope of activities of plane chessboard, trace it to its cause is because traditional chess game is a media with chessboard in kind, chess piece in kind, as wooden, stone matter, metal chessboard chess piece etc., limit by the media material capability, their capable chess mode can only be confined in the plane of bidimensional, can't set up the chessboard of solid space structure, the row chess of more not knowing where to begin in the space structure chessboard has been played chess at all.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method with computer demonstration three-dimensional space framework chess.
The technical solution adopted for the present invention to solve the technical problems:
Along with technical development of computer, the Virtual Space of any way can give full expression to out by computer system, the present invention just is being based on this technology and is designing and finishing, and it is abandoned medium in kind fully and limits, and passes through computer technology, in the Virtual Space, set up a space framework chessboard that has the broad space, the chess mode of going simultaneously is not subjected to any obstruction, and this has expanded capable chess scope greatly, improve chess player's the mode of thinking, increased chess player's interest.
Concrete technical scheme of the present invention is as follows:
Method with computer demonstration three-dimensional space framework chess is characterized in that:
(1) interface is set
A, utilization are added primary variables and are defined following code;
Definition chess piece width code, chess piece be code, chess lattice width code at interval;
White side, black, people, computing machine are set; The people is set, computing machine is used for man-machine fight;
B, utilization are added overall situation function and are defined following code;
The chess piece sequence number is converted to corresponding icon sequence number;
Definition chess piece type is identical with the icon sequence number;
Provide chess piece icon sequence number, judgement is white side or black;
(2) program initialization
A, utilization are added chessboard and are drawn function, are to set up three-dimensional system of coordinate;
B, draw the chessboard frame structure along the chessboard coordinate;
Utilize to introduce respectively that function is drawn chessboard, defined coordinate figure, the line in the chessboard that draws, define the title of each coordinate;
C, utilization are introduced the function definition mouse and are stirred chessboard along X, Y, Z axle; The definition keyboard instruction is rotated chessboard along X, Y, Z axle;
D, utilization are introduced the function definition click and are amplified chessboard;
E, utilization are introduced the function definition click and are entered the chessboard inner space, and the chessboard inner space is amplified in the definition keyboard instruction;
F, utilization are introduced the function definition keyboard instruction and are restored the chessboard interface;
Function definition chess piece shape, color and title are introduced in g, utilization;
(3) utilize the introducing function to define chess function and going action rule respectively:
A, definition chess function
Utilization introducing function defines the initial putting position of chess piece respectively, chess piece, mouse drag chess piece, the operation of keyboard instruction chess piece are picked up, put down to mouse;
B, definition going action rule:
Utilize the introducing function to define the chess piece rule of ac-tion respectively, judge whether the pendulum chess is correct, judges victory or defeat;
Utilize and introduce function by substep under the storage of linked list.
Beneficial effect of the present invention is as follows: because the present invention utilizes computer system, so can solve the limitation that chess game can only the planar row chess well by the expression way of various visual angles, many forms, and finally reach make chess game can be in three-dimensional space top to bottom, left and right, front and rear, the original effect of free walker chess.It has not only increased chess player's interest, and has widened chess player's the mode of thinking.
Description of drawings
Fig. 1-1, Fig. 1-2 are program flow diagram of the present invention (E among Fig. 1-1 1E among the map interlinking 1-2 1).
Fig. 2 is a computer demonstration 3 D stereo chessboard of go synoptic diagram.
Fig. 3 is the inner partial structurtes synoptic diagram of computer demonstration 3 D stereo chessboard of go.
Fig. 4 is the computer demonstration 3 D stereo go synoptic diagram of capturing.
Fig. 5 is a computer demonstration 3 D stereo Chinese chessboard synoptic diagram.
Fig. 6 is a computer demonstration 3 D stereo Chinese chess cloth subgraph.
Fig. 7 is computer demonstration 3 D stereo Chinese chess Middle Palace scholar road synoptic diagram.
Fig. 8 is a computer demonstration 3 D stereo chess chessboard synoptic diagram.
Fig. 9 is the capable chess synoptic diagram of computer demonstration 3 D stereo chess.
Embodiment
Embodiment 1: the method (referring to Fig. 1-1 and Fig. 1-2) of using the go of computer demonstration 3 D stereo:
(is programming language with Visual C++.Net)
Start Visual C++.Net, open a new project, select the MFC application item, dialog box options is set, in project, add the CGo2View class function and be used to define the basic operation that function of initializing and CGo2Doc class function file are used to define chess manual.
By void FillSolidRect (int x, int y, int z, int cx, int cy, int cz) the function introducing, in the CGo2View file, set up the horizontal ordinate (int x) of Solid chess-board, the width (int cx) of ordinate (int y) vertical coordinate (int z) and chessboard, length (int cy), highly (int cz);
By Cstring str; For (j=0; J<19; J++) function code is come the coordinate figure of picture Solid chess-board;
By for (i=1; I<=19; I++)
for(j=1;j<=19;j++)
For (k=1; K<=19; K++) the function code group demonstration array on each coordinate axis of drawing.
By str.Format (x 1-x 19), by str.Format (y 1-y 19), by str.Format (z 1-z 19) the function code group defines the title (seeing accompanying drawing 2) of each coordinate line.
Add interface initialization function by intCMainFainFrame:OnCreate (LPCREATESTRUCTlpCreateStruct) code.
With the method for computer demonstration three-dimensional space framework chess,
Utilize and introduce function, the definition mouse stirs chessboard along X, Y, Z axle; The definition keyboard instruction is rotated chessboard along X, Y, Z axle;
Utilize and introduce function definition click amplification chessboard;
Utilize the click of introducing function definition to enter the chessboard inner space, the chessboard inner space is amplified in the definition keyboard instruction;
Utilize and introduce function definition keyboard instruction recovery chessboard interface;
Utilize and introduce function definition chess piece shape, color and title;
Utilize the introducing function to define chess function and going action rule respectively:
The definition chess function
Utilization introducing function defines the initial putting position of chess piece respectively, chess piece, mouse drag chess piece, the operation of keyboard instruction chess piece are picked up, put down to mouse;
The definition going action rule:
Utilize the introducing function to define the chess piece rule of ac-tion respectively, judge whether the pendulum chess is correct, judge victory or defeat;
Utilize and introduce function by substep under the storage of linked list.
The 3 D stereo checkerboard configuration of embodiment 1 is referring to Fig. 2-4.
If will realize network interdynamic (referring to Fig. 1-1),, realize foundation, the supervision of network and be connected by the define grid server and client side.
Embodiment 2: the method for using computer demonstration 3 D stereo Chinese chess:
(is programming language with Visual c++.Net)
Start Visual c++.Ne, open a new project, select the MFC application item, main dialog box options is set, in option function, add Cpen pen[3]
m-pdcBoard->MoveTo(n)
M-pdcBoard->LineTo (n) function code such as (n are a variable, down together) is come the picture chessboard, draw in chess dish frame line.
By for (n=1; N<=8; N++) function code defines length coordinate value in the chessboard;
By for (n=1; N<=7; N++) function code defines chessboard insied width coordinate figure;
By for (n=1; N<=1; N++) function code defines chessboard inner height coordinate figure;
By m-pdcBoard->MoveTo (n)
M-pdcBoard->LineTo function code such as (n) draw each coordinate values line and Middle Palace scholar road oblique line (see figure 7).
Other method step is identical with embodiment 1.
The 3 D stereo checkerboard configuration of embodiment 2 is referring to Fig. 5-7.
What Fig. 5 and Fig. 6 drew is the chessboard of three-decker, also can draw out the chessboard more than three layers.In Fig. 6, it expresses the initial putting position of chess piece, (see figure 6) on one deck position in the middle of chess piece generally is placed in.
In Fig. 7, three couples of diagonal line (A 1, A 2), (B 1, B 2), (C 1, C 2) be respectively the diagonal line of three layers of chessboard of upper, middle and lower; D 1-D 4Be respectively four diagonal line of the square of two-layer composition up and down.
Embodiment 3: with the method for computer demonstration 3 D stereo chess
Its concrete grammar and embodiment 1 and embodiment 2 are similar, and just many stuffing functions are used to distinguish the black square and the white square of chessboard.
The structure of the 3 D stereo chessboard of embodiment 3 is referring to Fig. 8,9.
Fig. 9 represents chess piece Q 1Can move to Q to oblique the place ahead along the plane 3, also can move to Q obliquely upward along facade 2

Claims (1)

1, a kind of method with computer demonstration three-dimensional space framework chess is characterized in that:
(1) interface is set
A, utilization are added primary variables and are defined following code;
Definition chess piece width code, chess piece be code, chess lattice width code at interval;
White side, black, people, computing machine are set; The people is set, computing machine is used for man-machine fight;
B, utilization are added overall situation function and are defined following code;
The chess piece sequence number is converted to corresponding icon sequence number;
Definition chess piece type is identical with the icon sequence number;
Provide chess piece icon sequence number, judgement is white side or black;
(2) program initialization
A, utilization are added chessboard and are drawn function, are to set up three-dimensional system of coordinate;
B, draw the chessboard frame structure along the chessboard coordinate;
Utilize to introduce respectively that function is drawn chessboard, defined coordinate figure, the line in the chessboard that draws, define the title of each coordinate line;
C, utilization are introduced the function definition mouse and are stirred chessboard along X, Y, Z axle; The definition keyboard instruction is rotated chessboard along X, Y, Z axle;
D, utilization are introduced the function definition click and are amplified chessboard;
E, utilization are introduced the function definition click and are entered the chessboard inner space, and the chessboard inner space is amplified in the definition keyboard instruction;
F, utilization are introduced the function definition keyboard instruction and are restored the chessboard interface;
Function definition chess piece shape, color and title are introduced in g, utilization;
(3) utilize the introducing function to define chess function and going action rule respectively:
A, definition chess function
Utilization introducing function defines the initial putting position of chess piece respectively, chess piece, mouse drag chess piece, the operation of keyboard instruction chess piece are picked up, put down to mouse;
B, definition going action rule:
Utilize the introducing function to define the chess piece rule of ac-tion respectively, judge whether the pendulum chess is correct, judge victory or defeat;
Utilize and introduce function by substep under the storage of linked list.
CNA2004100122630A 2004-04-30 2004-04-30 Method for demonstrating 3D framework chess by a computer Pending CN1691040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2004100122630A CN1691040A (en) 2004-04-30 2004-04-30 Method for demonstrating 3D framework chess by a computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2004100122630A CN1691040A (en) 2004-04-30 2004-04-30 Method for demonstrating 3D framework chess by a computer

Publications (1)

Publication Number Publication Date
CN1691040A true CN1691040A (en) 2005-11-02

Family

ID=35346474

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2004100122630A Pending CN1691040A (en) 2004-04-30 2004-04-30 Method for demonstrating 3D framework chess by a computer

Country Status (1)

Country Link
CN (1) CN1691040A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542165A (en) * 2011-12-23 2012-07-04 三星半导体(中国)研究开发有限公司 Operating device and operating method for three-dimensional virtual chessboard
CN105641914A (en) * 2016-01-04 2016-06-08 汤天慰 Notation method for blindfold chess for blind people
CN105771239A (en) * 2016-03-31 2016-07-20 湖南快玩网络科技有限公司 Software realization method of space chess
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
CN105893037A (en) * 2016-03-31 2016-08-24 湖南快玩网络科技有限公司 Software implementation method for space gobang
CN106823361A (en) * 2017-02-07 2017-06-13 湖南快玩网络科技有限公司 The coordinate corresponding method and device of a kind of Solid chess-board
CN109045684A (en) * 2018-06-28 2018-12-21 上海智凌信息技术有限公司 A kind of control method and control device of projection chessboard
CN109529348A (en) * 2018-11-27 2019-03-29 山东工商学院 A method of three-dimensional five-piece chess chessboard model is constructed using unity engine
CN114143363A (en) * 2021-12-15 2022-03-04 杭州麦联科技有限公司 Interactive entertainment method combining video chat and chess

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542165A (en) * 2011-12-23 2012-07-04 三星半导体(中国)研究开发有限公司 Operating device and operating method for three-dimensional virtual chessboard
CN102542165B (en) * 2011-12-23 2015-04-08 三星半导体(中国)研究开发有限公司 Operating device and operating method for three-dimensional virtual chessboard
CN105641914A (en) * 2016-01-04 2016-06-08 汤天慰 Notation method for blindfold chess for blind people
CN105893037A (en) * 2016-03-31 2016-08-24 湖南快玩网络科技有限公司 Software implementation method for space gobang
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
CN105771239A (en) * 2016-03-31 2016-07-20 湖南快玩网络科技有限公司 Software realization method of space chess
CN106823361A (en) * 2017-02-07 2017-06-13 湖南快玩网络科技有限公司 The coordinate corresponding method and device of a kind of Solid chess-board
WO2018145387A1 (en) * 2017-02-07 2018-08-16 湖南快玩网络科技有限公司 Coordinate matching method and apparatus for three-dimensional checkerboard
CN109045684A (en) * 2018-06-28 2018-12-21 上海智凌信息技术有限公司 A kind of control method and control device of projection chessboard
CN109529348A (en) * 2018-11-27 2019-03-29 山东工商学院 A method of three-dimensional five-piece chess chessboard model is constructed using unity engine
CN109529348B (en) * 2018-11-27 2022-10-21 山东工商学院 Method for constructing three-dimensional gobang chessboard model by using unity engine
CN114143363A (en) * 2021-12-15 2022-03-04 杭州麦联科技有限公司 Interactive entertainment method combining video chat and chess

Similar Documents

Publication Publication Date Title
CN1691040A (en) Method for demonstrating 3D framework chess by a computer
CN1993712A (en) Automatic generation of building instructions for building block models
CN103785174B (en) A kind of same screen of playing shows the method and system of ten thousand people
CN1282052A (en) Protrait making device, method and storage protrait making program readable storage medium and video game machine
CN102157008A (en) Large-scale virtual crowd real-time rendering method
CN101075349A (en) Method for demonstrating cartoon effect in SVG
CN1949274A (en) 3-D visualising method for virtual crowd motion
CN107038745A (en) A kind of 3D tourist sights roaming interaction method and device
Spiller et al. Protocell architecture
Kopczynski et al. HyperRogue: Playing with hyperbolic geometry
CN105854299A (en) Software implementation method for hexagonal chess
Adams Simulation principles from dwarf fortress
CN106823361A (en) The coordinate corresponding method and device of a kind of Solid chess-board
US9576395B2 (en) Discrete objects for building virtual environments
CN113209612B (en) Building processing method and device in virtual scene, electronic equipment and storage medium
CN205730372U (en) Self-loopa entertaining is dabbled game table
CN205721737U (en) A kind of ancient painting stereoscopic experience device
CN1797413A (en) Method for implementing dynamic configuration for scene of game on mobile digital terminals
CN107469294A (en) A kind of paddler's motion analysis system based on KINECT hardware
Palócz et al. The applicability of geometrical games in designing modular housing solutions
Yapp et al. The Development of an Immersive Malay Village Virtual Reality Experience
CN1584027A (en) RNA sequential characteristic visual extracting method
Zhou Analysis on the Modeling Characteristics of the Masonry in the Han Dynasty Architectural Portraits
CN1360713A (en) Method and apparatus for generating images
CN1204542A (en) Twelve Earthy Branches competition chess and Twelve Earthy Branches competition cards

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication