CN107803018A - Game playing by machine system based on Chinese chess - Google Patents

Game playing by machine system based on Chinese chess Download PDF

Info

Publication number
CN107803018A
CN107803018A CN201710989402.2A CN201710989402A CN107803018A CN 107803018 A CN107803018 A CN 107803018A CN 201710989402 A CN201710989402 A CN 201710989402A CN 107803018 A CN107803018 A CN 107803018A
Authority
CN
China
Prior art keywords
chess
module
mechanical arm
main control
control 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
CN201710989402.2A
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.)
Donghua University
National Dong Hwa University
Original Assignee
Donghua University
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 Donghua University filed Critical Donghua University
Priority to CN201710989402.2A priority Critical patent/CN107803018A/en
Publication of CN107803018A publication Critical patent/CN107803018A/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/00003Types of board games
    • A63F3/00075War games
    • 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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J11/00Manipulators not otherwise provided for
    • B25J11/003Manipulators for entertainment
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1679Programme controls characterised by the tasks executed
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2250/00Miscellaneous game characteristics
    • A63F2250/52Miscellaneous game characteristics with a remote control

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Multimedia (AREA)
  • Educational Technology (AREA)
  • Automation & Control Theory (AREA)
  • Toys (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a kind of game playing by machine system based on Chinese chess, the system is resisted according to user's selection at everybody to be switched between pattern and man-machine confrontation pattern, it is characterised in that including mobile phone terminal, main control unit and mechanical arm.The present invention provides a kind of Chinese chess application program of mobile phone based on Chinese chess and can carry out normal game and the multidate information that both sides move can be gone out onto mechanical arm master controller by Bluetooth transmission, and then remote control mechanical arm is moved in real time, reach displaying Chinese chess game dynamic system in real time.

Description

Game playing by machine system based on Chinese chess
Technical field
It is using what mobile phone Chinese chess APP and bluetooth were controlled that mechanical arm realizes Chinese chess game the present invention relates to a kind of System.
Background technology
With the fast development of the upsurge and computer technology of artificial intelligence, various smart electronicses products constantly pour in us Life so that the living standard and quality of life of the people greatly improves, diversity, practicality and convenience of the people to product It it is also proposed higher requirement.
Chinese chess is the culture rarity of China, is the chess game for belonging to two sides confrontation, because Chinese chess is interesting By force, brain intelligence is highly profitable, therefore, either between children, or between the elderly it is all very prevailing.In recent years Due to the appearance of robot, interest of the people to robot Chinese chess game playing system is even more improved, this causes traditional game pair War pattern is changed.This invention system causes robot to add game, and this is added for many early education mechanisms Virgin game-play enjoyment, teaching demonstration of the teacher to Chinese chess is also beneficial to, for large-scale geriatric nursing home, the elderly can be given Life addition enjoyment, more conducively the elderly play chess, see chess, lift skill in playing chess.
The content of the invention
The purpose of the present invention is:There is provided a kind of mobile phone can be moved in real time with remote control mechanical arm, reach displaying China as The system of chess game.
In order to achieve the above object, the technical scheme is that providing a kind of game playing by machine system based on Chinese chess System, the system is resisted according to user's selection at everybody to be switched between pattern and man-machine confrontation pattern, it is characterised in that including mobile phone End, main control unit and mechanical arm, wherein:
Mobile phone terminal includes:Search bluetooth equipment list display module, the Bluetooth signal sent for searching for main control unit, and The list of devices of all main control units for sending Bluetooth signal searched is shown, user selects one in list of devices Individual main control unit carries out Bluetooth matching with current phone end;
Bluetooth communication control module, for controlling mobile phone terminal to be communicated with the main control unit matched, so as to transmit data;
Application program starts to exit logic module, for entering into and exiting from Chinese chess game function interface;
Only in the game playing algorithm module of man-machine confrontation mode activation, 90 points based on current chess piece state on chessboard Intelligent search goes out optimal confrontation way to get there, and is shown on chessboard, while forms multidate information according to optimal confrontation way to get there;
Chess piece Dynamic Matching instruction module, the mode of moving voluntarily selected according to multidate information or user are moved, often When one step is moved, for matching the correspondence position on chessboard, so as to produce position action command;
Chess piece dynamic instruction module is transmitted, under man-machine confrontation pattern, for position action command to be sent into master control list Member;
Chess piece is moved logic rules judge module, whether meets the rule of Chinese chess for judging that each step is moved, only Have and meet, just chess piece corresponding to permission is walked about, and could allow to transmit chess piece dynamic instruction module to master unit transmissions position Action command;
Retract a false move module, the selection according to user activates, and after module of retracting a false move is activated, user can retract a false move a step, program meeting The information of previous step is obtained from red-black square chess dynamic position logging modle, the action that previous step is passed by reappears;
Eat chess piece decision logic module, when move meet way to get there rule when, by other side's chess when point of destination is present to square chess Son is eaten up, and shows as disappearing to square chess on mobile phone terminal, eats the upright often arrival point of destination of chess, mechanical arm end is shown as other side Chess piece takes down chessboard, eats chess Founder and is often brought into point of destination;
Move and think deeply timing module, the timing for thinking of being played chess for both sides, when a side covers chess, take turns to the opposing party and move When, timing is begun to, if thinking timing exceeds schedule time, is designated as losing;
Red-black square chess dynamic position logging modle, after both sides' chess piece often makes a move, for recording current state of moving;
Chessboard real-time information display module, for calling red-black square chess dynamic position logging modle real-time display currently to walk Chess state;
Main control unit, the position action command sended over for parsing mobile phone terminal, forms the control for control machinery arm Pulse processed, suitable action is made respectively so as to coordinate mechanical arm of six tunnels with servomotor, correspondence position is taken to form folder The appropriate action of chess piece;
Six mechanical arms of the section with servomotor, are acted for the instruction according to main control unit.
The main control unit includes STM32 master controllers, six road PWM steering wheels interface modules, reseting module, supply voltage mould Block, STM32 master controllers connect six road PWM steering wheels interface modules, reseting module and supply voltage module respectively;STM32 master controls Device processed controls the mechanical arm via six road PWM steering wheels interface modules;Reseting module, for setting the reset of whole mechanical arm to move Make;Supply voltage module provides operating voltage for STM32 master controllers.
The present invention based on Chinese chess provide a kind of Chinese chess application program of mobile phone can carry out normal game and The multidate information that both sides move can be gone out onto mechanical arm master controller by Bluetooth transmission, and then remote control mechanical arm Move in real time, reach displaying Chinese chess game dynamic system in real time.
Brief description of the drawings
Fig. 1 is the detailed composition structure chart of whole system.
Fig. 2 is control structure outward appearance master drawing of the virtual terminal game in end real-time exhibition in kind, wherein, 1 is main control Device module;2 be the power module of control panel;3 be reseting module;4 be bluetooth communication;5 be PWM steering wheel interface modules, institute It is connected respectively with wire with the servomotor of each section mechanical arm with interface, it is driven each section machinery according to the order of master controller Arm makes action;6 be mechanical structure cup dolly, it can 360 degree of rotations, adjust the direction of action of whole mechanical arm;7 are and rudder The connected servomotor of machine interface module, 270 degree of pitch actions can be made by manipulating respective mechanical arm respectively;8 be machine Tool arm is installation place of the folder by device again simultaneously.The size of right side chessboard will assemble in proportion with the length of mechanical arm, ensure All chess pieces are within the scope of the action manipulation of mechanical arm.
Embodiment
With reference to specific embodiment, the present invention is expanded on further.It should be understood that these embodiments are merely to illustrate the present invention Rather than limitation the scope of the present invention.In addition, it is to be understood that after the content of the invention lectured has been read, people in the art Member can make various changes or modifications to the present invention, and these equivalent form of values equally fall within the application appended claims and limited Scope.
Chinese chess game system provided by the invention mainly includes software and hardware two large divisions.Software section bag Include game playing algorithm and realize module, chess piece is moved logic rules judge module, functional module of retracting a false move, is eaten chess decision logic module, is walked Chess thinks deeply timing module, red-black square chess dynamic position logging modle, chessboard real-time information display module, search bluetooth equipment row Table display module, transmits chess piece dynamic instruction module, chess piece Dynamic Matching instruction module, and application program starts to exit logic mould Block;Hardware components are mainly servos control plate, including STM32 master controllers, supply voltage module, Bluetooth communication control module, Reseting module, six road PWM steering wheels interface modules and six mechanical arms of the section with servomotor.Bluetooth transmission chess piece multidate information Module and steering wheel master controller are that soft or hard Liang great departments connect the core bridge for realizing systemic-function.Each program and module Function is as follows:
Game playing algorithm module:As man-machine chess, game playing algorithm can use maximum minimum pruning algorithms, main to be responsible for Fast search analysis is carried out to chess manual instantly, optimal countermeasure and way to get there are drawn, to realize man-machine chess's function.
Chess piece is moved logic rules judge module:Either man-machine chess or everybody play chess, often make a move chess, will adjust Judge whether walking about for walked chess piece meets the rule of Chinese chess with this module, only meet rule, could show that it is walked about State, if do not met, chessboard does not respond then.Such as:Chariots going a straight line line, horse walk " day " word lattice, as walking sphere of movements for the elephants lattice, will only exist Walk about in nine grids, if there is one's own side's chess piece obstruction on straight line, can not walk about;If something that gives the game away is blocked, can not walk about; As if eye is blocked, can not walk about.
Retract a false move functional module:When game is played chess, click on applications client on retract a false move function key when, the chess piece of previous step Status information will be shown again, and can resend instruction, and control machinery arm takes chess piece the position of previous step.
Eat chess decision logic module:If one's own side's chess piece meets rule when walking about, if the destination locations walked about have other side Chess piece, this module can be called to be eaten up to square chess, chess piece that mobile phone terminal is eaten up disappears, and destination locations show that one's own side walks about chess Son, while send and instruct what will be eaten up to be taken to square chess under chessboard, one's own side's chess piece is taken into correspondence position.
Move and think deeply timing module:When game of playing chess starts, a side just calling module entrance at once for power of moving is obtained Timing, if more than the defined time, it is considered as and abandons moving, be judged to lose.
Red-black square chess dynamic position logging modle:The multidate information that both sides' chess piece often makes a move will all call this module to remember Record chess piece is moved state, allows other modules to call this module to come out chess piece state real-time exhibition.
Search for bluetooth equipment list display module:Before starting game and playing chess, first to search for bluetooth and be searched all List of devices show, with connection transmission instruction.
Chess piece Dynamic Matching instruction module:After being successfully connected bluetooth, each step when game is played chess is moved and will call this Module matches the instruction of correspondence position.
Transmit chess piece dynamic instruction module:When each step move location matches instruct successfully after, this module will be called to refer to Order is transferred to mechanical arm and controls it progress chess piece in kind to walk about.
Chessboard real-time information display module:This module is the core that whole software section interacts with game user, other moulds Block will be connected with this module, mutually call, and any dynamic of other modules will be shown by this module.
Application program starts to exit logic module:This module is the indispensable part of application program, controls the beginning of program And exit function.Click on application program and enter game function interface, click, which starts game, can then enter the initialization of chess piece chessboard Interface, if to play interruption, return key on mobile phone can be clicked on always to exiting, if game midway needs Rest, pause function can be selected, Chinese chess can then rest on current page, retain chess piece state, start until clicking on.
Bluetooth communication control module:This module is furnished with indicator lamp, is that the bridge in kind controlled, mobile phone are arrived in mobile phone virtual game After bluetooth and this module pairs successful connection, indicator lamp is green, and shown in red if without successful connection, this module is responsible for The instruction for the chess piece location matches that mobile phone terminal sends over is received, and by master controller analysis instruction with control machinery arm.
STM32 master controllers:Master controller is core of the system virtualization game synchronization to material object control, is responsible for parsing mobile phone The instruction sent is held, and suitably controls pulse with hardware components other module coordinations processing, formation, especially coordinates six tunnels Mechanical arm with servomotor makes suitable action respectively, to form appropriate action of the folder by correspondence position chess piece.
Six road PWM steering wheel interface modules:Caused control pulse after reception master board resolve command, for control machinery Arm performs action.
Reseting module:This module can set the homing action of whole mechanical arm, can set logic in a program and cause Mechanical arm is resetted after set has been performed, also can hand-reset, resetted when control panel is opened every time, so Mechanical arm can be made to correct error in time, perform more accurately control action.
Supply voltage module:This module is the master switch of whole control panel, and module indicating lamp is bright during opening, and control panel is in Treat working condition, control panel can not work during closing.

Claims (2)

1. a kind of game playing by machine system based on Chinese chess, the system selects to resist pattern and man-machine right at everybody according to user Switch between anti-pattern, it is characterised in that including mobile phone terminal, main control unit and mechanical arm, wherein:
Mobile phone terminal includes:Bluetooth equipment list display module, the Bluetooth signal sent for searching for main control unit are searched for, and will be searched Rope to the list of devices of all main control units for sending Bluetooth signal show, user selects a master in list of devices Control unit and carry out Bluetooth matching with current phone end;
Bluetooth communication control module, for controlling mobile phone terminal to be communicated with the main control unit matched, so as to transmit data;
Application program starts to exit logic module, for entering into and exiting from Chinese chess game function interface;
The intelligence only in the game playing algorithm module of man-machine confrontation mode activation, 90 points based on current chess piece state on chessboard Optimal confrontation way to get there is searched out, and is shown on chessboard, while multidate information is formed according to optimal confrontation way to get there;
Chess piece Dynamic Matching instruction module, the mode of moving voluntarily selected according to multidate information or user are moved, Mei Yibu When moving, for matching the correspondence position on chessboard, so as to produce position action command;
Chess piece dynamic instruction module is transmitted, under man-machine confrontation pattern, for position action command to be sent into main control unit;
Chess piece is moved logic rules judge module, whether is met the rule of Chinese chess for judging that each step is moved, is only accorded with Close, just chess piece corresponding to permission is walked about, and could allow to transmit chess piece dynamic instruction module to the action of master unit transmissions position Instruction;
Retract a false move module, the selection according to user is activated, and after module of retracting a false move is activated, user can be retracted a false move a step, and previous step is walked The action crossed reappears;
Eat chess piece decision logic module, when move meet way to get there rule when, point of destination exist to square chess when square chess will be eaten Fall, show as disappearing to square chess on mobile phone terminal, eat the upright often arrival point of destination of chess, mechanical arm end is shown as to square chess Chessboard is taken down, chess Founder is eaten and is often brought into point of destination;
Move thinking timing module, the timing for thinking of being played chess for both sides, when a side covers chess, when taking turns to the opposing party and moving, Timing is begun to, if thinking timing exceeds schedule time, is designated as losing;
Red-black square chess dynamic position logging modle, after both sides' chess piece often makes a move, for recording current state of moving;
Chessboard real-time information display module, for calling red-black square chess dynamic position logging modle real-time display currently to move shape State;
Main control unit, the position action command sended over for parsing mobile phone terminal, forms the control arteries and veins for control machinery arm Punching, suitable action is made respectively so as to coordinate mechanical arm of six tunnels with servomotor, correspondence position chess piece is taken to form folder Appropriate action;
Six mechanical arms of the section with servomotor, are acted for the instruction according to main control unit.
A kind of 2. game playing by machine system based on Chinese chess as claimed in claim 1, it is characterised in that the main control unit Including STM32 master controllers, six road PWM steering wheels interface modules, reseting module, supply voltage module, STM32 master controllers difference Connect six road PWM steering wheels interface modules, reseting module and supply voltage module;STM32 master controllers connect via six road PWM steering wheels Mouth mold block controls the mechanical arm;Reseting module, for setting the homing action of whole mechanical arm;Supply voltage module is STM32 master controllers provide operating voltage.
CN201710989402.2A 2017-10-20 2017-10-20 Game playing by machine system based on Chinese chess Pending CN107803018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710989402.2A CN107803018A (en) 2017-10-20 2017-10-20 Game playing by machine system based on Chinese chess

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710989402.2A CN107803018A (en) 2017-10-20 2017-10-20 Game playing by machine system based on Chinese chess

Publications (1)

Publication Number Publication Date
CN107803018A true CN107803018A (en) 2018-03-16

Family

ID=61593179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710989402.2A Pending CN107803018A (en) 2017-10-20 2017-10-20 Game playing by machine system based on Chinese chess

Country Status (1)

Country Link
CN (1) CN107803018A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109999497A (en) * 2019-04-30 2019-07-12 腾讯科技(深圳)有限公司 The control method and device of virtual objects, storage medium and electronic device
CN110394805A (en) * 2019-06-25 2019-11-01 绍兴文理学院 Game system under helping the elderly based on robotic arm
CN111562844A (en) * 2020-04-30 2020-08-21 中国传媒大学 Full-automatic game Chinese chess system
CN112247981A (en) * 2020-07-22 2021-01-22 中国人民解放军军事科学院国防科技创新研究院 Chess playing and handicapped helping mechanical arm asynchronous system and method based on brain-computer interface
CN113885707A (en) * 2021-10-21 2022-01-04 浙江瑞瀛物联科技有限公司 Online chess-playing system based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080214260A1 (en) * 2007-03-02 2008-09-04 National Taiwan University Of Science And Technology Board game system utilizing a robot arm
CN101732852A (en) * 2008-11-25 2010-06-16 北京新岸线移动多媒体技术有限公司 Chess control device and method
CN103252077A (en) * 2012-10-26 2013-08-21 上海未来伙伴机器人有限公司 Chess playing robot

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080214260A1 (en) * 2007-03-02 2008-09-04 National Taiwan University Of Science And Technology Board game system utilizing a robot arm
CN101732852A (en) * 2008-11-25 2010-06-16 北京新岸线移动多媒体技术有限公司 Chess control device and method
CN103252077A (en) * 2012-10-26 2013-08-21 上海未来伙伴机器人有限公司 Chess playing robot

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐丽丽等: "基于Mega128的象棋机器人对弈系统的研究", 《传感器世界》 *
扬州晚报: "扬大版"阿尔法狗"诞生 用机械臂移动棋子", 《HTTPS://JS.QQ.COM/A/20170315/018474.HTM》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109999497A (en) * 2019-04-30 2019-07-12 腾讯科技(深圳)有限公司 The control method and device of virtual objects, storage medium and electronic device
CN110394805A (en) * 2019-06-25 2019-11-01 绍兴文理学院 Game system under helping the elderly based on robotic arm
CN111562844A (en) * 2020-04-30 2020-08-21 中国传媒大学 Full-automatic game Chinese chess system
CN111562844B (en) * 2020-04-30 2023-04-21 中国传媒大学 Full-automatic game Chinese chess system
CN112247981A (en) * 2020-07-22 2021-01-22 中国人民解放军军事科学院国防科技创新研究院 Chess playing and handicapped helping mechanical arm asynchronous system and method based on brain-computer interface
CN113885707A (en) * 2021-10-21 2022-01-04 浙江瑞瀛物联科技有限公司 Online chess-playing system based on Internet of things

Similar Documents

Publication Publication Date Title
CN107803018A (en) Game playing by machine system based on Chinese chess
CN106625670B (en) A kind of control system and method for multifunctional man-machine interactive apery educational robot
CN107596698B (en) A kind of control system and implementation method of Intelligent bionic machinery dog
CN203950271U (en) A kind of intelligent bracelet with gesture control function
CN102033607B (en) Human-machine interaction information system and method for realizing human-machine interaction
CN104731343A (en) Virtual reality man-machine interaction children education experience system based on mobile terminal
CN107308635A (en) Interactive object grabbing machine and control method thereof
CN105641947B (en) Interactive delight system and its control method
CN109434833A (en) Control system, method and the storage medium of AI intelligence programming bio-robot
US11766607B2 (en) Portal device and cooperating video game machine
CN107901040A (en) Robot myoelectric control system based on ROS
US11529560B2 (en) Method and apparatus for controlling virtual race car, storage medium, and device
CN104765359A (en) Control method for performing blind operation on multi-rotor craft through virtual remote rod touch screen
Ibrahimov et al. Dronepick: Object picking and delivery teleoperation with the drone controlled by a wearable tactile display
CN206045398U (en) Interactive intelligent toy animals
CN109118880B (en) Robot learning and cooperation system based on Bluetooth mesh
CN203750179U (en) Quadruped voice interaction intelligent toy
CN203235258U (en) Remote control model wireless control system based on gesture recognition
CN205516493U (en) Interaction entertainment system
CN104898677B (en) The navigation system and its method of a kind of robot
CN205552542U (en) Long -range interactive robot
CN208799769U (en) A kind of building block system instruction module, host apparatus and modular system
CN204331627U (en) Simulation system is moulded in one conception of species material objectization identification
CN109807904A (en) Juvenile interacts robot
CN109272817A (en) A kind of colleges and universities' multifunction teaching robot

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180316

WD01 Invention patent application deemed withdrawn after publication