[background technology]
Chess game is subjected to liking of the people of other countries as a kind of entertainment, the form of chess and various in style, and as go, chess, Chinese chess etc., every kind of chess all have chessboard, chess piece and the walking rule of oneself.Chess have developed into an athletic competition project from initial conduct converter tools only.Playing chess singly is not the skill in playing chess battle, and is the sports of aspect competitions such as endurance, muscle power, memory, psychology and environmental factor.Be subjected to the influence of different traditional cultures, regular different Chinese chess and chess between east and west the development.
No matter be the pluses and minuses that Chinese chess or chess all have himself:
The chess piece of Chinese chess size is consistent, oblately easily sees easily book and periodical printing.Chinese chess mostly is straight line moving and attacks and kill in addition, and the oblique line walking is attacked and killed fewly, uses right half brain more; As " big gun " in the Chinese chess rule, be the very intelligent embodiments of Chinese, its jumping characteristic thinking, give full play to mentality, defeat by a surprise move, really accomplished to get twice the result with half the effort, the product of the such a deduction type mode of thinking is that the conclusion type mode of thinking that the westerner is good at is difficult to produce.
The chessboard of Chinese chess makes the walking rule of chess piece that many restrictions be arranged, and can only directly make a move as " soldier " of Chinese chess, can not move diagonally, and charges on earth also Cheng Buliao marshal." horse " has the regulation of " the horse leg of spraining ", the horse leg of its square chess of not only spraining, the horse leg of the one's own side's chess piece of also spraining; And " general " or " general " can only directly make a move in " nine palaces "; " bodyguard " can only escort in " nine palaces ", can not go out the palace forever; " resemble " and can not cross the boundary, can only on one's own side's territory, walk.
International chess piece is a solid image, and physical size differs, and is vivid, is easy to identification and memory, different states others, as long as know, understand the implication that difform chess piece is represented, just can play chess.In addition, the walking of the chess piece in chess rule is open, and the restriction of no too many rules and regulations as " king " in the chess (King), can be walked out Royal Palace, is deep among one's own side or the other side." horse " in the chess (Knight) do not have a regulation of said in the Chinese chess " the horse leg of spraining "." elephant " in the chess (Bishop) can cross the boundary, enters the other side's territory." soldier " in the chess (Pawn) can rise when arriving the other side's bottom line and become the arbitrary chess piece that removes " soldier " and " king ".Also have extremely powerful " back " (Queen) in the chess, it can directly be walked, tiltedly walk, as long as without hindrance therebetween every chess piece, its lattice number of walking is not limit; Fully given prominence to the thought of paying attention to the women, the adding of " back " has reached the effect of " integration is combined and imitated ".But chess lacks the Chinese culture that Chinese chess contained, and it mostly is the oblique line walking and attacks extremely, and straight line moving is attacked to kill and lacked, and uses left brain more, lacks the thinking as " the straight line jump " of " big gun " in the Chinese chess.No matter be Chinese chess or chess, all exist the single shortcoming of the mode of thinking.
[summary of the invention]
For solving above-mentioned existing issue, the invention provides a kind of chess that merges Chinese chess, strengthen the diversity of chess, and in chess, embodied the culture of Chinese chess simultaneously, more help the popularization of chess motion.
Improved chess provided by the invention comprises chessboard and chess piece, and described chessboard is by horizontal vertical each 8 lattice, color one dark one shallow staggered 64 squares that lattice is formed; Described chess piece divides black and white two sides, black and white both sides are totally 36 pieces of chess pieces, 18 pieces of every sides, except 32 pieces of intrinsic chess pieces of chess, every square chess has added the big gun of two pieces of Chinese chesses, be to comprise two cars (Rook) in every square chess, two horses (Knight), two resemble (Bishop), after one (Queen), a king (King), eight soldiers (Pawn) and two big guns, the putting position of chessboard is when playing chess: a leftmost lattice is dark lattice from the nearest delegation of the person of playing chess, chess piece is put in the lattice of described chessboard, when beginning to play chess, the chess piece putting position of white side is as follows: from the nearest delegation of the white side person of playing chess from left to right: car, horse, resemble, after, the king, resemble, horse, car; From the near delegation of the white side person of playing chess second from left to right: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
Place two soldiers from the white side person of playing chess the 3rd near delegation on the respective column of two big guns, remainder is vacant;
The chess piece putting position of black is as follows:
From the nearest delegation of the black person of playing chess from left to right: car, horse, resemble, king, back, resemble, horse, car;
From the near delegation of the black person of playing chess second from left to right: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
Place two soldiers from the black person of playing chess the 3rd near delegation on the respective column of two big guns, remainder is vacant.
The present invention utilizes data handling system to realize the device that described improved chess is played chess, and comprising: the initial position memory that is used to store each chess piece putting position when beginning to play chess; Be used for storing the chess piece dynamic memory of each chess piece position of process; Be used to receive the command receiver of the chess piece move that the person of playing chess sends; Be used to judge whether chess piece move that the person of playing chess sends meets the rule judgment device of moving of the predefined rule of moving, the described rule judgment device of moving comprises and is used to judge that the big gun that moves of big gun moves judge module; The chess piece move that is used for sending the person of playing chess meets predefined moving during rule, the corresponding instruction that the execution command receiver sends, and then change the instruction actuator of chess piece position in the chess piece dynamic memory; The liter that is used for pointing out the chess piece type after this side person of playing chess selects to rise change and changes the chess piece type of chess piece dynamic memory correspondence position according to the result who selects when a side soldier arrives the other side's bottom line becomes controller; Be used for the chess piece positional information of initial position memory or the storage of chess piece dynamic memory is fed back to the person's of playing chess chess piece position indicator.
Wherein, and described initial position memory and chess piece dynamic memory two-dimensional coordinate (i, j) i, j=1, the form of 2......8 is stored the position of each chess piece.
The white square chess original state corresponding relation of described initial position memory stores is as follows:
(1,1), (2,1) ... (8,1) are followed successively by: car, horse, resemble, back, king, resemble, horse, car;
(1,2), (2,2) ... (8,2) are followed successively by: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
(2,3) are the soldier with (7,3)
Black chess piece original state corresponding relation is as follows:
(1,8), (2,8) .... (8,8) are followed successively by: car, horse, resemble, back, king, resemble, horse, car;
(1,7), (2,7) ... (8,7) are followed successively by: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
(2,6) are the soldier with (7,6).
The further improved plan of apparatus of the present invention is, the described rule judgment device of moving comprises that big gun moves judge module, and this module comprises following submodule: whether the target location that is used to judge chess piece is that the judgement submodule is moved in the existence of other positions of chessboard except that this chess piece occupies; Be used for when moving the one's own side's chess piece judgement the submodule whether target location of judging chess piece when existing or not one's own side's chess piece; Be used for when there is not one's own side's chess piece in the target location, judging whether the chess piece shiftable haulage line is the straight line judgement submodule of straight line; Be used for when the chess piece shiftable haulage line judge whether during for straight line target bit be equipped with Obstacle chess subnumber order on other party chess piece and the chess piece shiftable haulage line be 1 or target location other party/obstacle chess piece of not having an accessible chess piece on his square chess and the chess piece shiftable haulage line judge submodule; Being as the judged result of above-mentioned submodule is that the result of the then described rule judgment device output of moving is the mobile rule that meets of big gun; Judged result as above-mentioned submodule exists not, and the result of the then described rule judgment device output of moving is the mobile rule that do not meet of big gun.
An improved plan again of apparatus of the present invention is that described liter becomes controller and comprises with lower module: be used to judge whether a side soldier is positioned at the other side's bottom line liter change judge module; Be used for when a side soldier is positioned at the other side's bottom line, pointing out this side person of playing chess car, horse, resemble, liter that big gun, back are selected to rise the chess piece type after becoming becomes reminding module; The liter that is used to receive the chess piece type selecting instruction that the person of playing chess sends becomes the command reception module; The liter that the selection instruction that is used for sending according to the person of playing chess changes the chess piece type of chess piece dynamic memory correspondence position becomes Executive Module.
The present invention is by respectively increasing the big gun of two pieces of Chinese chesses in the black and white side of chess, and in the device that utilizes data handling system to realize that described improved chess plays chess, at the rule judgment device of moving big gun is set and moves judge module, make the chess diversification.Big gun in the Chinese chess is that straight line moving is attacked extremely simultaneously, remedy existing chess straight line moving and attacked and kill few shortcoming, increased the interest of chess, not only kept each chess piece embodied in the chess culture and thought, as " soldier ": pursue, realize ideal; " king ": go deep into the realities of life optimum management; " resemble ": domestic and foreign affairs, information is interconnected; " horse ": encourage innovations, advocate win-win; " back ": pay attention to the women, integration is combined and is imitated; Help the popularization of this motion, the glamour of also clear existing traditional Chinese culture is simultaneously embodied as the jump thinking of " big gun ": defeat by a surprise move, get twice the result with half the effort.
[specific embodiment]
As shown in Figure 1, improved chess of the present invention comprises chessboard 10, chess piece 20, and described chessboard 10 is chessboards used in the chess of standard, by horizontal vertical each 8 lattice, color one dark one shallow staggered 64 squares that lattice 11 is formed.20 fens black and white two sides of described chess piece, black and white both sides are totally 36 pieces of chess pieces, 18 pieces of every sides, except 32 pieces of intrinsic chess pieces of chess, every square chess has added the big gun 21 of two pieces of Chinese chesses, comprises in promptly every square chess that two cars (Rook), two horses (Knight), two resemble (Bishop), (Queen), a king (King), eight soldiers (Pawn) and two big guns after one.When playing chess, chess piece is put in the lattice of described chessboard.
The putting position of chessboard is when playing chess: first lattice that rises from the limit of the nearest delegation of the person of playing chess is dark lattice.When beginning to play chess, the chess piece putting position of white side is as follows:
From the nearest delegation of the white side person of playing chess from left to right: car, horse, resemble, back, king, resemble, horse, car;
From the near delegation of the white side person of playing chess second from left to right: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
Place two soldiers from the white side person of playing chess the 3rd near delegation on the respective column of two big guns, remainder is vacant;
The chess piece putting position of black is as follows:
From the nearest delegation of the black person of playing chess from left to right: car, horse, resemble, king, back, resemble, horse, car;
From the near delegation of the black person of playing chess second from left to right: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
Place two soldiers from the black person of playing chess the 3rd near delegation on the respective column of two big guns, remainder is vacant.
In the process of playing chess, being described as follows of chess piece way to get there:
Big gun: walk and capture by the big gun of Chinese chess, promptly directly walk, do not limit lattice; When capturing, directly walk, eat prescription every a son.
The soldier: soldier's first step can only walk one especially before removing big gun, other soldier's the way to get there and the same chess of capturing;
The chess piece of other beyond big gun, the soldier is walked and is captured by the rule of chess.
The present invention realizes the device that described improved chess is played chess by utilizing data handling system, as shown in Figure 2, comprise: initial position memory 1, chess piece dynamic memory 2, command receiver 3, the rule judgment of moving device 4, instruction actuator 5, rise change controller 6 and chess piece position indicator 7. wherein, initial position memory 1 is the information that is used to store each chess piece putting position when beginning to play chess, it is by two-dimensional coordinate (i, j) i, j=1,2......8 the form position of storing each chess piece, chess piece dynamic memory 2 reads the information in the initial position memory 1, and demonstrates initial both sides' chess piece state by the chess piece position indicator. and the white square chess original state corresponding relation of described initial position memory stores is as follows:
(1,1), (2,1) ... (8,1) are followed successively by: car, horse, resemble, back, king, resemble, horse, car;
(1,2), (2,2) ... (8,2) are followed successively by: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
(2,3) are the soldier with (7,3)
Black chess piece original state corresponding relation is as follows:
(1,8), (2,8) ... (8,8) are followed successively by: car, horse, resemble, back, king, resemble, horse, car;
(1,7), (2,7) ... (8,7) are followed successively by: soldier, big gun, soldier, soldier, soldier, soldier, big gun, soldier;
(2,6) are the soldier with (7,6).
Chess piece dynamic memory 2 is used for storing the information of each chess piece position of process, it is by two-dimensional coordinate (i, j) i, j=1,2......8 the form position of storing each chess piece, and demonstrate the chess piece state that changes the both sides behind the position by the chess piece position indicator.
Command receiver 3 is used to receive the move of the chess piece that the person of playing chess sends.Described move judges by the rule judgment device 4 of moving whether the chess piece move that the person of playing chess sends meets the predefined rule of moving; When move meets predefined moving during rule, the rule judgment of moving device 4 sends the information of "Yes" to instruction actuator 5; The instruction that instruction actuator 5 receives and execution command receiver 3 sends, chess piece position in the corresponding change chess piece of the chess piece dynamic memory that the person of playing chess is sent, and be stored in the chess piece dynamic memory.
The described rule judgment device 4 of moving can be judged the general way to get there rule of chess piece in the chess, also can judge as " castling " and rules such as " capture of pawn en passant " the special way to get there of chess piece in the chess.When the person of playing chess sends will carry out " castling " time to command receiver 3, the rule judgment of moving device 4 receives the information that command receiver 3 sends, and then judge, whether its judgement " king " is to move for the first time, and between " king ", " car " whether without hindrance every, whether " car " is to move for the first time, if the result of above-mentioned steps is is, then sends the instruction of " castling " that executable instruction receiver 3 sends to instruction actuator 5.If there is one to be not in the above-mentioned steps, the rule judgment of then moving device 4 sends information not to instruction actuator 5, then instructs actuator 5 to refuse the instruction that execution command receivers 3 send.
If the person of playing chess is when sending the instruction of tiltedly advancing lattice to its our soldier, the rule judgment of moving device 4 judges that whether this soldier's target location is his square chess, one's own side's chess piece or for empty, if his square chess or one's own side's chess piece then pressed the general rule execution.If be empty, the rule judgment of then moving device 4 continues to judge that whether horizontal and this soldier's the grid of joining longitudinally of target location of this soldier's initial position is that the soldier of other party is occupied.If whether the soldier who continues to judge this other side is row chess and directly advance two lattice for the first time, and whether we's the soldier action of tiltedly advancing lattice is to be right after this time of soldier of the other side to go chess crown's action immediately.If the rule judgment of then moving device 4 is to the information of the instruction of instructing actuator 5 transmission execution command receivers 3 to send.In the follow-up deterministic process of target location when empty, there is one for not, the do not execute instruction information of the instruction that receiver 3 sends of the rule judgment of then moving device 4 outputs.
After instruction actuator 5 is received the instruction that the soldier can tiltedly advance, because and the unclear instruction that should carry out capture of pawn en passant still is common instruction of capturing, therefore need at first read the information in the chess piece dynamic memory, whether the target location of judging this soldier exists chess piece. if there is no, instruction actuator 5 is carried out the received instruction of moving, move our soldier to the target location, and with this soldier's initial position laterally with soldier's elimination of the other party of the joining longitudinally of target location, finish the instruction of " capture of pawn en passant "; If exist, then carry out the common instruction of capturing.
The rule judgment device 4 of moving among the present invention comprises that big gun moves judge module, and this module comprises following submodule: exist mobile judgement submodule, one's own side's chess piece judgement submodule, straight line judgement submodule and other party/obstacle chess piece to judge submodule.Wherein, exist to move and to judge that submodule is used to judge that whether the target location of this this chess piece of big gun is other positions of chessboard except that this chess piece occupies.One's own side's chess piece judges that submodule is used for judging whether the target location that big gun will move does not exist one's own side's chess piece when big gun exists when mobile.Straight line judges that submodule is used for judging whether the shiftable haulage line of big gun is straight line when there is not one's own side's chess piece in the target location.Other party/obstacle chess piece judge submodule be used for when the big gun shiftable haulage line judge whether during for straight line target bit be equipped with on other party chess piece and the chess piece shiftable haulage line Obstacle chess subnumber order be 1 or the target location do not have accessible chess piece on his square chess and the chess piece shiftable haulage line.
Being as the judged result of above-mentioned submodule is that the result of the then described rule judgment device output of moving is the mobile rule that meets of big gun; Judged result as above-mentioned submodule exists not, and the result of the then described rule judgment device output of moving is the mobile rule that do not meet of big gun.
Chess piece position indicator 7 is used for the chess piece positional information of initial position memory or the storage of chess piece dynamic memory is fed back to the person of playing chess.
Because the soldier in the chess, have when arriving the other side's bottom line, can rise and become except that king and any chess piece himself, as back, horse etc., so this device comprises also and rises change controller 6 that it monitors the bottom line information of storage in the chess piece dynamic memory 2 always, when a certain Fang Youbing of the person of playing chess arrives the other side's bottom line, point out this side person of playing chess to select to rise the chess piece type after the change and change the type of the chess piece of correspondence position in the chess piece dynamic memory according to the result of selection.
Described liter becomes controller 6 and comprises with lower module:
Be used to judge whether a side soldier is positioned at the other side's bottom line liter change judge module; Be used for when a side soldier is positioned at the other side's bottom line, pointing out this side person of playing chess car, horse, resemble, liter that big gun, back are selected to rise the chess piece type after becoming becomes reminding module; The liter that is used to receive the chess piece type selecting instruction that the person of playing chess sends becomes the command reception module; The liter that the selection instruction that is used for sending according to the person of playing chess changes the chess piece type of chess piece dynamic memory correspondence position becomes Executive Module.
Below be that example illustrates the flow process control of this device when playing chess with car and big gun:
At first the initial position memory is accepted distributional condition, provides the init state data to the chess piece dynamic memory, and shows the initial position discharging of chess piece to the person of playing chess by display.
In the process of playing chess, after the user clicks this chess piece of car, click certain target location again, i.e. the car target location that will be moved to.In this moving process, the move of the car that the command receiver reception person of playing chess sends, and send this instruction to the rule judgment device of moving, whether the move of the locomotive that sends with the judgement person of playing chess meets the predefined rule of moving, and judges that at first whether the target location is his square chess; If whether the original position that continues to judge this car chess piece is to being linear rows between the target location; If, the rule judgment of then moving device continues move is judged, the original position of judging this car chess piece is to whether there not being chess piece between the target location, if, the then mobile success of this car chess piece, the rule judgment of moving device sends to this information in the dynamic position memory, and the dynamic position memory stores also shows the layout of the chessboard after the car chess piece moves.If have in the above-mentioned deterministic process one undesirable, be not, the result of the rule judgment of moving device output is the mobile rule that do not meet of car, and the information of this failure is sent in the dynamic memory, dynamic memory keeps former layout constant.
In the process of playing chess, after the user clicks this chess piece of big gun, click certain target location again, be the target location that big gun will be moved to. in this moving process, the move of the big gun that the command receiver reception person of playing chess sends, and the big gun that this instruction is sent in the rule judgment device of moving moves judge module, whether the move of the mobile big gun that sends with the judgement person of playing chess meets the predefined rule of moving. and big gun moves existence in the judge module and moves and judge that submodule judges that whether the target location of this big gun is other positions of chessboard except that this big gun is occupied, if, existing to move and judge that submodule sends to one's own side's chess piece with this information and judges submodule and inform that it can carry out next step program. one's own side's chess piece judges whether the target location that submodule judges that big gun will move does not exist one's own side's chess piece, if, one's own side's chess piece judges that submodule information sends to successful information and judges submodule and inform that it can carry out next step program to straight line, straight line judges that submodule judges whether the shiftable haulage line of big gun is straight line, if, sending to successful information gives other party/obstacle chess piece judgement submodule and informs that it can carry out next step program, promptly judge whether target bit be equipped with on other party chess piece and the chess piece shiftable haulage line Obstacle chess subnumber order be 1 or the target location do not have accessible chess piece on his square chess and the chess piece shiftable haulage line, if, big gun moves success, the result of the described rule judgment device output of moving is the mobile rule that meets of big gun, and this information sent to dynamic memory, dynamic memory upgrades layout, and shows the emissions status of the chess piece after moving by display.
Judged result as above-mentioned submodule exists not, the result of the then described rule judgment device output of moving is the mobile rule that do not meet of big gun, then moving of this big gun chess piece got nowhere, the result of the rule judgment of moving device output is the mobile rule that do not meet of big gun, and the information of this failure sent in the dynamic memory, dynamic memory keeps former layout constant.
The device that utilizes data handling system to realize that described improved chess is played chess of the present invention can realize that not only two people play chess on same computer, also can realize onlinely playing chess by the internet.