CN108686369A - A kind of weiqi play chess method and system - Google Patents

A kind of weiqi play chess method and system Download PDF

Info

Publication number
CN108686369A
CN108686369A CN201810518882.9A CN201810518882A CN108686369A CN 108686369 A CN108686369 A CN 108686369A CN 201810518882 A CN201810518882 A CN 201810518882A CN 108686369 A CN108686369 A CN 108686369A
Authority
CN
China
Prior art keywords
chess
play
fielding
string
unit
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
CN201810518882.9A
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.)
Shanxi Shu Hai Media Technology Co Ltd
Original Assignee
Shanxi Shu Hai Media Technology Co Ltd
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 Shanxi Shu Hai Media Technology Co Ltd filed Critical Shanxi Shu Hai Media Technology Co Ltd
Priority to CN201810518882.9A priority Critical patent/CN108686369A/en
Publication of CN108686369A publication Critical patent/CN108686369A/en
Pending legal-status Critical Current

Links

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/02Chess; Similar board games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)

Abstract

A kind of weiqi play chess method and system disclosed by the invention, including:Judge whether user holds the dark son, if so, identify the position of current chess piece, otherwise, computer play chess;It is instructed in conjunction with the position of current chess piece and play chess, in corresponding position play chess;The present invention can make user more focus on energy on the strategy played chess, and to increase athletics, design is simple, rationally, and it is convenient to operate with, and begin, grape reaction speed is fast and error is small, and error rate is low, can bring good game experiencing.

Description

A kind of weiqi play chess method and system
Technical field
The invention belongs to the technical fields of go, and in particular to a kind of weiqi play chess method and system.
Background technology
There are 361 (19 rows × 19 arrange) a crosspoints that can place chess piece, also referred to as chess position on existing chessboard of go, makes Played chess with black chess piece and white chess piece, and the both sides that play chess respectively use a kind of chess piece of color.In general, by black elder generation play chess, it is double Square wheel prevalence chess, any play chess can only fall into a chess piece.Lead to there was only a gas to square chess after side's play chess, this Play chess is called " beat and eat ", i.e., play chess can eat up the chess piece of other side next time.Lead to the chess piece of other side not after side's play chess There is gas again, this play chess is called " capturing " or " grape ", at this time must take all chess pieces eaten from chessboard away.It is any The chess piece of oneself must not be caused without gas when one side's play chess, otherwise this play chess is invalid.As it can be seen that a play chess includes:By play chess side Chess piece fall on crosspoint, if this play chess can be eaten up to square chess, should also will be eaten chess piece and be taken away from chessboard.
But existing go life or death chess practice software is all to be entered into exam pool in advance, and the standard of typing in advance is answered Case could be completed to practice if necessary to multistep, must practice in strict accordance with the step predefined when practice, and Also it can not practice the life or death chess being not present in exam pool practice.
Invention content
The present invention overcomes the shortcomings of the prior art, technical problem to be solved to be:There is provided one kind can be according to working as The position of preceding chess piece and play chess instruction, computer carry out the weiqi play chess method and system of play chess by calculating optimum position.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of weiqi play chess method, including: S101, judge whether user holds the dark son, if so, executing step S102, otherwise, execute step S103;S102, the current chess piece of identification Position;S103, computer play chess;S104, the position in conjunction with current chess piece and play chess instruction, in corresponding position play chess.
Preferably, further include:The layout of all kinds of chess manuals is stored, chess manual library is formed.
Preferably, further include:When computer starts to begin, the chess string of both sides is counted;When a side does not have other side's chess string, Then other side wins, and plays chess to terminate.
Preferably, the position of the current chess piece of the combination and play chess instruction, in corresponding position play chess, including:Defend other side Each chess string, and obtain the best fielding position of each chess string;Merge best fielding position, it is best anti-to obtain each Keep the chess tandem table that position can be protected;Remove the position of beginning that other side can not defend;Each chess string of other side is attacked, and is obtained Take the optimal attack position of each chess string;Merge optimal attack position, obtains what each optimal attack position can be attacked Chess tandem table;Remove the position of beginning that other side can not attack;Count the phase in the best fielding position of other side and optimal attack position Same position obtains best fielding position and optimal attack position;According to the chess string quantity that can be attacked or defend to most preferably defending Position and optimal attack name placement;Defence is obtained from best fielding position and optimal attack position and attacks most chess strings Position, position of most preferably being begun.
Preferably, the position of the current chess piece of the combination and play chess instruction, in corresponding position play chess, may also include:When same When there are when best fielding position and optimal attack position, then preferentially use best fielding position.
Correspondingly, a kind of weiqi play chess system, including:Judging unit:For judging whether user holds the dark son;Identification is single Member:It holds the dark the period of the day from 11 p.m. to 1 a.m for working as user, identifies the position of current chess piece;First execution unit:It holds the white the period of the day from 11 p.m. to 1 a.m, calculates for working as user Machine play chess;Second execution unit:Position for combining current chess piece and play chess instruction, in corresponding position play chess.
Preferably, further include:Unit is established in chess manual library:For storing the layout of all kinds of chess manuals, chess manual is formed Library.
Preferably, further include:First statistic unit:When computer starts to begin, the chess string of both sides is counted;Judge single Member:When a side does not have other side's chess string, then other side wins, and plays chess to terminate.
Preferably, second execution unit further includes:First acquisition unit:Each chess string for defending other side, And obtain the best fielding position of each chess string;First combining unit:For merging best fielding position, each is obtained most The chess tandem table that good fielding position can protect;First rejected unit:The position of beginning that can not be defended for removing other side;Second Acquiring unit:Each chess string for attacking other side, and obtain the optimal attack position of each chess string;Second merges list Member:For merging optimal attack position, the chess tandem table that each optimal attack position can be attacked is obtained;Second excludes list Member:The position of beginning that can not be attacked for removing other side;Second statistic unit:For counting the best fielding position of other side and best The same position in position is attacked, best fielding position and optimal attack position are obtained;Arrangement units:According to can attack or prevent The chess string quantity kept is to best fielding position and optimal attack name placement;Searching unit:It attacks from best fielding position and most preferably Hit the position for being obtained in position and defending and attack most chess strings, position of most preferably being begun.
Preferably, second execution unit may also include:Judgement unit:When existing simultaneously best fielding position and best When attacking position, then best fielding position is preferentially used.
The present invention has the advantages that compared with prior art:
A kind of weiqi play chess method and system disclosed by the invention can calculate and most preferably begin according to the play chess of user Position makes people not have to that chess piece is manually put into specific position as before, and making to play chess becomes more convenient, but also with Family can more focus on energy on the strategy played chess, to increase athletics;Present inventive concept is simple, reasonable, and operation makes With convenient, begin, grape reaction speed is fast and error is small, error rate is low, can bring good game experiencing.
Description of the drawings
The present invention will be further described in detail below in conjunction with the accompanying drawings;
Fig. 1 is a kind of flow diagram for weiqi play chess method that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of weiqi play chess system provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention three provides;
Fig. 5 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention four provides;
Fig. 6 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention five provides;
Wherein:101 be judging unit, and 102 be recognition unit, and 103 be the first execution unit, and 104 be the second execution unit, 1041 be first acquisition unit, and 1042 be the first combining unit, and 1043 be the first rejected unit, and 1044 be second acquisition unit, 1045 be the second combining unit, and 1046 be the second rejected unit, and 1047 be the second statistic unit, and 1048 be arrangement units, 1049 It is judgement unit for searching unit, 1050,105 establish unit for chess manual library, and 106 be the first statistic unit, and 107 is single to terminate Member.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments;Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram for weiqi play chess method that the embodiment of the present invention one provides, as shown in Figure 1, a kind of Weiqi play chess method, including:
S101, judge whether user holds the dark son, if so, executing step S102, otherwise, execute step S103;
The position of S102, the current chess piece of identification;
S103, computer play chess;
S104, the position in conjunction with current chess piece and play chess instruction, in corresponding position play chess.
Further, further include:The layout of all kinds of chess manuals is stored, chess manual library is formed.
Further, further include:When computer starts to begin, the chess string of both sides is counted;When a side does not have other side's chess string When, then other side wins, and plays chess to terminate.
Further, the position of the current chess piece of the combination and play chess instruction in corresponding position play chess, further include:Defence Each chess string of other side, and obtain the best fielding position of each chess string;Merge best fielding position, obtains each most The chess tandem table that good fielding position can protect;Remove the position of beginning that other side can not defend;Each chess string of other side is attacked, And obtain the optimal attack position of each chess string;Merge optimal attack position, obtaining each optimal attack position can attack The chess tandem table hit;Remove the position of beginning that other side can not attack;It counts in the best fielding position of other side and optimal attack position Same position, obtain best fielding position and optimal attack position;According to the chess string quantity that can be attacked or defend to best Fielding position and optimal attack name placement;Defence is obtained from best fielding position and optimal attack position and attacks most chesses The position of string, position of most preferably being begun.
Further, the position of the current chess piece of the combination and play chess instruction, in corresponding position play chess, may also include:When When existing simultaneously best fielding position and optimal attack position, then best fielding position is preferentially used.
Fig. 2 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention one provides, as shown in Fig. 2, a kind of Weiqi play chess system, including:
Judging unit 101:For judging whether user holds the dark son;
Recognition unit 102:It holds the dark the period of the day from 11 p.m. to 1 a.m for working as user, identifies the position of current chess piece;
First execution unit 103:It holds the white the period of the day from 11 p.m. to 1 a.m for working as user, computer play chess;
Second execution unit 104:Position for combining current chess piece and play chess instruction, in corresponding position play chess.
Specifically, judging unit 101 judges whether user holds the dark son, and when user holds the dark the period of the day from 11 p.m. to 1 a.m, user's play chess, computer is known The position of not current chess piece;When user holds the white the period of the day from 11 p.m. to 1 a.m, computer play chess;It instructs, calculates in conjunction with the position of current chess piece and play chess Machine carries out follow-up play chess in corresponding position;The present invention can be according to the arbitrary play chess position of user, and computer is by calculating optimum bit Carry out play chess is set, life or death chess can be flexibly defined, it is not necessary that life or death chess is shifted to an earlier date typing exam pool in advance, promotes the experience effect of user Fruit, practicability are stronger.
Fig. 3 is a kind of structural schematic diagram of weiqi play chess system provided by Embodiment 2 of the present invention, as shown in figure 3, in reality On the basis of applying example one, the weiqi play chess system further includes:
Unit 105 is established in chess manual library:For storing the layout of all kinds of chess manuals, chess manual library is formed.
Fig. 4 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention three provides, as shown in figure 4, in reality On the basis of applying example two, the weiqi play chess system further includes:
First statistic unit 106:When computer starts to begin, the chess string of both sides is counted;
End unit 107:When a side does not have other side's chess string, then other side wins, and plays chess to terminate.
Fig. 5 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention four provides, as shown in figure 5, in reality On the basis of applying example three, second execution unit 104, including:
First acquisition unit 1041:Each chess string for defending other side, and obtain the best defence of each chess string Position;
First combining unit 1042:For merging best fielding position, obtaining each best fielding position can protect Chess tandem table;
First rejected unit 1043:The position of beginning that can not be defended for removing other side;
Second acquisition unit 1044:Each chess string for attacking other side, and obtain the optimal attack of each chess string Position;
Second combining unit 1045:For merging optimal attack position, obtaining each optimal attack position can attack Chess tandem table;
Second rejected unit 1046:The position of beginning that can not be attacked for removing other side;
Second statistic unit 1047:For counting the same position in the best fielding position of other side and optimal attack position, Obtain best fielding position and optimal attack position;
Arrangement units 1048:According to the chess string quantity that can be attacked or defend to best fielding position and optimal attack position Sequence;
Searching unit 1049:Defence is obtained from best fielding position and optimal attack position and attacks the position of most chess strings It sets, position of most preferably being begun.
Fig. 6 is a kind of structural schematic diagram for weiqi play chess system that the embodiment of the present invention five provides, as shown in fig. 6, in reality On the basis of applying example four, second execution unit 104 may also include:
Judgement unit 1050:It is when existing simultaneously best fielding position and optimal attack position, then preferential using best anti- Keep position.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of weiqi play chess method, it is characterised in that:Including:
S101, judge whether user holds the dark son, if so, executing step S102, otherwise, execute step S103;
The position of S102, the current chess piece of identification;
S103, computer play chess;
S104, the position in conjunction with current chess piece and play chess instruction, in corresponding position play chess.
2. a kind of weiqi play chess method according to claim 1, it is characterised in that:Further include:
The layout of all kinds of chess manuals is stored, chess manual library is formed.
3. a kind of weiqi play chess method according to claim 1, it is characterised in that:Further include:
When computer starts to begin, the chess string of both sides is counted;
When a side does not have other side's chess string, then other side wins, and plays chess to terminate.
4. a kind of weiqi play chess method according to claim 3, it is characterised in that:The position of the current chess piece of combination and Play chess instructs, in corresponding position play chess, including:
Each chess string of other side is defended, and obtains the best fielding position of each chess string;
Merge best fielding position, obtains the chess tandem table that each best fielding position can protect;
Remove the position of beginning that other side can not defend;
Each chess string of other side is attacked, and obtains the optimal attack position of each chess string;
Merge optimal attack position, obtains the chess tandem table that each optimal attack position can be attacked;
Remove the position of beginning that other side can not attack;
The same position in the best fielding position of other side and optimal attack position is counted, best fielding position and optimal attack are obtained Position;
According to the chess string quantity that can be attacked or defend to best fielding position and optimal attack name placement;
Defence is obtained from best fielding position and optimal attack position and attacks the position of most chess strings, position of most preferably being begun It sets.
5. a kind of weiqi play chess method according to claim 4, it is characterised in that:The position of the current chess piece of combination and Play chess instructs, and in corresponding position play chess, may also include:
When existing simultaneously best fielding position and optimal attack position, then best fielding position is preferentially used.
6. a kind of weiqi play chess system, it is characterised in that:Including:
Judging unit (101):For judging whether user holds the dark son;
Recognition unit (102):It holds the dark the period of the day from 11 p.m. to 1 a.m for working as user, identifies the position of current chess piece;
First execution unit (103):It holds the white the period of the day from 11 p.m. to 1 a.m for working as user, computer play chess;
Second execution unit (104):Position for combining current chess piece and play chess instruction, in corresponding position play chess.
7. a kind of weiqi play chess system according to claim 6, it is characterised in that:Further include:
Unit (105) is established in chess manual library:For storing the layout of all kinds of chess manuals, chess manual library is formed.
8. a kind of weiqi play chess system according to claim 6, it is characterised in that:Further include:
First statistic unit (106):When computer starts to begin, the chess string of both sides is counted;
End unit (107):When a side does not have other side's chess string, then other side wins, and plays chess to terminate.
9. a kind of weiqi play chess system according to claim 8, it is characterised in that:Second execution unit (104) is also Including:
First acquisition unit (1041):Each chess string for defending other side, and obtain the best defence position of each chess string It sets;
First combining unit (1042):For merging best fielding position, obtain what each best fielding position can protect Chess tandem table;
First rejected unit (1043):The position of beginning that can not be defended for removing other side;
Second acquisition unit (1044):Each chess string for attacking other side, and obtain the optimal attack position of each chess string It sets;
Second combining unit (1045):For merging optimal attack position, obtain what each optimal attack position can be attacked Chess tandem table;
Second rejected unit (1046):The position of beginning that can not be attacked for removing other side;
Second statistic unit (1047):For counting the same position in the best fielding position of other side and optimal attack position, obtain To best fielding position and optimal attack position;
Arrangement units (1048):Best fielding position and optimal attack position are arranged according to the chess string quantity that can be attacked or defend Sequence;
Searching unit (1049):Defence is obtained from best fielding position and optimal attack position and attacks the position of most chess strings It sets, position of most preferably being begun.
10. a kind of weiqi play chess system according to claim 9, it is characterised in that:Second execution unit (104) is also It may include:
Judgement unit (1050):It is when existing simultaneously best fielding position and optimal attack position, then preferential to use best defence Position.
CN201810518882.9A 2018-05-28 2018-05-28 A kind of weiqi play chess method and system Pending CN108686369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810518882.9A CN108686369A (en) 2018-05-28 2018-05-28 A kind of weiqi play chess method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810518882.9A CN108686369A (en) 2018-05-28 2018-05-28 A kind of weiqi play chess method and system

Publications (1)

Publication Number Publication Date
CN108686369A true CN108686369A (en) 2018-10-23

Family

ID=63847905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810518882.9A Pending CN108686369A (en) 2018-05-28 2018-05-28 A kind of weiqi play chess method and system

Country Status (1)

Country Link
CN (1) CN108686369A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378819A (en) * 2019-07-24 2019-10-25 王云飞 A kind of go Education Administration Information System
CN111260513A (en) * 2020-01-13 2020-06-09 深圳研略科技有限公司 Interconnection management system for children's go teaching

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012904A (en) * 2009-09-07 2011-04-13 周四红 Method and system for generating chess manual file
CN105664478A (en) * 2016-01-15 2016-06-15 上海斐讯数据通信技术有限公司 Go composition outcome judgment method and mobile terminal
CN105677161A (en) * 2016-03-14 2016-06-15 西宁维度信息技术有限公司 Go playing system based on spherical surface and playing and chess piece placing method thereof
CN105983229A (en) * 2015-02-02 2016-10-05 南君钰 Electronic go game board and gaming method independently allowing human-machine or online go game
CN106606862A (en) * 2016-07-09 2017-05-03 孙永兴 Intelligent I-go chessboard

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012904A (en) * 2009-09-07 2011-04-13 周四红 Method and system for generating chess manual file
CN105983229A (en) * 2015-02-02 2016-10-05 南君钰 Electronic go game board and gaming method independently allowing human-machine or online go game
CN105664478A (en) * 2016-01-15 2016-06-15 上海斐讯数据通信技术有限公司 Go composition outcome judgment method and mobile terminal
CN105677161A (en) * 2016-03-14 2016-06-15 西宁维度信息技术有限公司 Go playing system based on spherical surface and playing and chess piece placing method thereof
CN106606862A (en) * 2016-07-09 2017-05-03 孙永兴 Intelligent I-go chessboard

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110378819A (en) * 2019-07-24 2019-10-25 王云飞 A kind of go Education Administration Information System
CN111260513A (en) * 2020-01-13 2020-06-09 深圳研略科技有限公司 Interconnection management system for children's go teaching
CN111260513B (en) * 2020-01-13 2023-12-19 深圳研略科技有限公司 Interconnected management system for teaching of children's go

Similar Documents

Publication Publication Date Title
CN108686369A (en) A kind of weiqi play chess method and system
JP2019047928A5 (en)
US11596860B2 (en) Game server device, server control method, and server control program
CN102566924A (en) Soft keyboard operation processing method capable of enhancing safety protection
JP6030077B2 (en) Game system and computer program
JP2015150234A (en) Game program and game apparatus
CN108021369A (en) Data integration processing method and related device
CN106709229B (en) The method and device of NPC object priority response in a kind of game system
CN108900909A (en) Judgment method, corresponding medium and the electronic equipment of cheating user
Barr et al. Were height and mass related to performance at the 2007 and 2011 Rugby World Cups?
CN107832000A (en) Information processing method, device, electronic equipment and storage medium
CN101894199A (en) Method for realizing user-defined user operation habit in chess and card games
JP6438085B1 (en) Program, information processing apparatus and control method
JP5719943B1 (en) GAME CONTROL METHOD, COMPUTER AND CONTROL PROGRAM
CN105664478A (en) Go composition outcome judgment method and mobile terminal
CN105786597A (en) Method and device for realizing task switching in uCOS-III operation system
KR20240042231A (en) Item synthesis methods and devices, storage media, and electronic devices
CN104580452B (en) Content information shared method and system and electronic equipment
Tanimoto A study of a quadruple co-evolutionary model and its reciprocity phase for various Prisoner's Dilemma game
CN106776328B (en) A kind of BUG and the associated method of test case
JP5908157B2 (en) GAME CONTROL METHOD, COMPUTER AND CONTROL PROGRAM
JP6085651B2 (en) Reward grant program, reward grant method, and server device
JP6854582B2 (en) Programs, control methods and information processing equipment
CN105771237B (en) Chess/card game changes board control method and device
JP2019150323A5 (en)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023