CN103405910A - Portable electronic gobang device - Google Patents

Portable electronic gobang device Download PDF

Info

Publication number
CN103405910A
CN103405910A CN2012103994607A CN201210399460A CN103405910A CN 103405910 A CN103405910 A CN 103405910A CN 2012103994607 A CN2012103994607 A CN 2012103994607A CN 201210399460 A CN201210399460 A CN 201210399460A CN 103405910 A CN103405910 A CN 103405910A
Authority
CN
China
Prior art keywords
red
green
undo
portable electronic
led
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
CN2012103994607A
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.)
Changzhou University
Original Assignee
Changzhou 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 Changzhou University filed Critical Changzhou University
Priority to CN2012103994607A priority Critical patent/CN103405910A/en
Publication of CN103405910A publication Critical patent/CN103405910A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a portable electronic gobang device which comprises a display system (1), a drive system (5) and a control system (6). Red LEDs and green LEDs are placed on gobang lattice points in the display system, and the LEDs are connected in series and are provided with forty-eight input ports; the control system (6) is composed of two control handles and a circuit connected with the handles; the drive system is composed of a STC89C52 chip and 74HC595 chips, the drive system stores the victory innings of the two sides by distributing a variable red_win_count and a variable green_win_count, and a game result can be checked; the drive system records the positions of chess pieces through two two-dimensional arrays of Red_undo[][] and Green_undo[][], and the undo function is achieved.

Description

A kind of portable electronic quintet game device
Technical field
The invention belongs to a kind of electronic installation, for the double portable Pieceless gobang device of playing chess.
Background technology
The chessboard of common quintet game is larger, needs to fold, and easily damages the many easily loss of chess piece.Publication number be the CN2530694 Pieceless gobang adopted can erasure method, prevent that chess piece from losing, realize the Pieceless gobang game; The rail mounted quintet game of publication number CN300719409, adopted 12*12 dot matrix slot type chessboard, prevents the chess piece loss, realizes game; The round chess piece of publication number CN3261881, five-piece chess chessboard adopts the lower round chess piece of center of gravity, prevents the chess piece loss, completes game.The LED five-piece chess chessboard of publication number CN201832402U, adopted the LED that places two different colours on the quintet game lattice point, with switch, lights the LED of both sides' different colours, completes game.
Although these method intuitive and convenient, degree of intelligence is lower.Can not add up achievement, the function of some steps that can not realize going back on one's word.
Summary of the invention
The invention solves and on the quintet game lattice point, only place a dual-colored LED, the red LED that moves sends out a warning, and when green side moved, LED gave a green light, and has Intelligent statistical and the ten step rollbacks function of retracting a false move.
The technical solution adopted for the present invention to solve the technical problems is:
(a) handle input message with the hands, the information that handle input red is moved, the information that the green side of another handle input moves; (b) each take part on handle have upwards, downwards, left, to the right, determine, go back on one's word, check 7 buttons of result; (c) input information that will move by handle of the person of playing chess, to drive system, lights, moves, determines that the LED of respective color is as the position of beginning by drive system; (d) in the situation that there are other chess pieces to occupy, defensive position must be avoided occupied lattice point; (e) LED of same color has adjacent five chess pieces in a straight line, game over, and record the result of playing chess.(f) No. 5 powered battery of 3 joints.
According to the portable electronic quintet game device that above technical conceive adopts, it comprises display system 1, and drive system 5 and control system 6 are placed red, a green dual-colored LED on the quintet game lattice point in display system, and LED adopts connected in series, and 48 input ports are arranged; Control system 6 is reached the electric circuit constitute of getting continuously mutually with handle by two joysticks; Described drive system is comprised of chip STC89C52 and chip 74HC595.Chip 74HC595 has 6, two anodal drivings for the capable driving of LED of chip; Four chip negative poles drive for the LED row.Joystick is to chip STC89C52 input message, after chip STC89C52 reception information, by four port driver chip 74HC595.
Joystick comprise to left button 9, upwards button 10, confirming button 11, to right button 12, check results button 13, to knob down 14, ground connection 15, the button 16 of going back on one's word.
Described portable quintet game device can add up achievement:
In chess game is carried out, by lower right, check button 13, can show the play chess score of victory or defeat result of current both sides.After one innings of end, by lower right, check button 13, also can show the instant score after this innings finishes.
After start, two variable red_win_count of system assignment and green_win_count, be used to storing red and green side's triumph office number, be initialized as 0.After one innings of end, if red is won, just variable red_win_count is added to 1, as light green side, win and variable green_win_count is added to 1.These two variablees are delivered to display routine, just can be on display screen the instant playback achievement that goes out.
Described portable quintet game device can be retracted a false move:
Have the right to control a side of chess piece, the chess piece of having the right simultaneously to cancel the other side's previous step, after cancelling, control is transferred to the other side.This is designed with an advantage, when a side requires to retract a false move, can only, after obtaining the other side's agreement, be carried out and be retracted a false move by the other side.
System is with two two-dimensional array Red_undo[] [], Green_undo[] [] store respectively the nearest coordinate of beginning for 5 times of red green both sides.
Red Red_undo[0] Red_undo[1] Red_undo[2] Red_undo[3] Red_undo[4]
Abscissa ? ? ? ? ?
Ordinate ? ? ? ? ?
 
Green side Gre_undo[0] Gre_undo[1] Gre_undo[2] Gre_undo[3] Gre_undo[4]
Abscissa ? ? ? ? ?
Ordinate ? ? ? ? ?
In chess game is carried out, often determine a chess piece, its coordinate is deposited in array, the originally right shift successively of the data in array, a oldest secondary data is dropped.The data of these two array records are prepared for retracting a false move exactly.
When pressing the retracting a false move during button 16 of lower left, cursor moves to the coordinate place according to the coordinate recorded in array, and that place is labeled as without the chess piece state.Afterwards the data in array are moved to left successively, up-to-date once record is dropped.
Data logger while depositing in:
The n step:
undo[0] undo[1] undo[2] undo[3] undo[4]
X5 X4 X3 X2 X1
The n+1 step:
undo[0] undo[1] undo[2] undo[3] undo[4]
X6 X5 X4 X3 X2
Data signal table while retracting a false move
The n step:
undo[0] undo[1] undo[2] undo[3] undo[4]
X5 X4 X3 X2 X1
After retracting a false move:
undo[0] undo[1] undo[2] undo[3] undo[4]
X4 X3 X2 X1 Countless certificates
Joystick has two, and joystick 7 is controlled green LED, and joystick 8 is controlled red LED.The five-piece chess chessboard of 16 * 16 dot matrix that the dot matrix that display system 1 is comprised of red, the green dual-colored LED of 48 * 8 shows.
Adopt technical scheme of the present invention, with low cost, good practical effect, interesting strong, be easy to carry.
The accompanying drawing explanation
Fig. 1 is the system and device figure of the portable Pieceless gobang device of the present invention.
Fig. 2 is the circuit diagram of the portable Pieceless gobang device of the present invention.
Fig. 3 is the handle component figure of the portable Pieceless gobang device of the present invention.
The specific embodiment
Below in conjunction with accompanying drawing, a specific embodiment of the present invention is described further.
Portable electronic quintet game device, it comprises display system 1, and drive system 5 and control system 6 are placed red, a green dual-colored LED on the quintet game lattice point in display system, and LED adopts connected in series, and 48 input ports are arranged; Control system 6 is reached the electric circuit constitute of getting continuously mutually with handle by two joysticks; Described drive system is comprised of chip STC89C52 and chip 74HC595, and joystick is to chip STC89C52 input message, after chip STC89C52 reception information, by four port driver chip 74HC595.Chip 74HC595 has 6, two anodal drivings for the capable driving of LED of chip; Four chip negative poles drive for the LED row, controlling respectively row red, green LED drives, when positive and negative electrode is exported high and low level respectively, the LED two ends form electrical potential difference, thereby light the LED of relevant position respective color, when the positive and negative electrode output level was identical, electrical potential difference was zero, and LED extinguishes.
Joystick comprise to left button 9, upwards button 10, confirming button 11, to right button 12, check results button 13, to knob down 14, ground connection 15, the button 16 of going back on one's word.
Joystick has two, and joystick 7 is controlled green LED, and joystick 8 is controlled red LED.The five-piece chess chessboard of 16 * 16 dot matrix that the dot matrix that display system 1 is comprised of red, the green dual-colored LED of 48 * 8 shows.

Claims (8)

1. portable electronic quintet game device, it comprises display system (1), and drive system (5) and control system (6) is characterized in that: in described display system, place red, a green dual-colored LED on the quintet game lattice point, LED adopts connected in series, and 48 input ports are arranged; Described control system (6) is reached the electric circuit constitute be connected with handle by two joysticks; Described drive system is comprised of chip STC89C52 and chip 74HC595, and described drive system is by distributing variable red_win_count and green_win_count, and storage both sides' triumph office number, can check result; Described drive system is by two two-dimensional array Red_undo[] [], Green_undo[] [] record the position of chess piece, realizes retracting a false move function.
2. portable electronic quintet game device according to claim 1, it is characterized in that: chip 74HC595 has 6, two anodal drivings for the capable driving of LED of chip; Four chip negative poles drive for the LED row.
3. portable electronic quintet game device according to claim 2, it is characterized in that: joystick is to chip STC89C52 input message, after chip STC89C52 reception information, by four port driver chip 74HC595.
4. portable electronic quintet game device according to claim 1 is characterized in that: described joystick comprise to left button (9), upwards button (10), confirming button (11), to right button (12), check results button (13), to knob down (14), ground connection (15), the button of going back on one's word (16).
5. according to the described portable electronic quintet game of claim 1 to 4 any one device, it is characterized in that: joystick has two, and joystick (7) is controlled green LED, and joystick (8) is controlled red LED.
6. portable electronic quintet game device according to claim 5 is characterized in that: the five-piece chess chessboard of 16 * 16 dot matrix that the dot matrix that display system (1) is comprised of red, the green dual-colored LED of 48 * 8 shows.
7. portable electronic quintet game device according to claim 1 is characterized in that: described drive system is distributed two variable red_win_count and green_win_count, be used to storing red and green side's triumph office number, is initialized as 0; After one innings of end, if red is won, just variable red_win_count is added to 1, as light green side, win and variable green_win_count is added to 1; These two variablees are delivered to display routine, check that results button (13) can check result.
8. portable electronic quintet game device according to claim 1, it is characterized in that: described drive system is with two two-dimensional array Red_undo[] [], Green_undo[] [] store respectively the nearest coordinate of beginning for 5 times of red green both sides, often determine a chess piece, its coordinate is deposited in array, the originally right shift successively of the data in array, a oldest secondary data is dropped; When pressing the button of going back on one's word (16), cursor moves to the coordinate place according to the coordinate recorded in array, and that place is labeled as without the chess piece state, then the data in array is moved to left successively, and up-to-date once record is dropped, and realizes the function of retracting a false move.
CN2012103994607A 2012-10-19 2012-10-19 Portable electronic gobang device Pending CN103405910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103994607A CN103405910A (en) 2012-10-19 2012-10-19 Portable electronic gobang device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103994607A CN103405910A (en) 2012-10-19 2012-10-19 Portable electronic gobang device

Publications (1)

Publication Number Publication Date
CN103405910A true CN103405910A (en) 2013-11-27

Family

ID=49598979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103994607A Pending CN103405910A (en) 2012-10-19 2012-10-19 Portable electronic gobang device

Country Status (1)

Country Link
CN (1) CN103405910A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2382442Y (en) * 1999-08-23 2000-06-14 白士森 Electronic go chess board
CN101332357A (en) * 2007-06-27 2008-12-31 周四红 Electric go chessboard
CN101380515A (en) * 2007-09-06 2009-03-11 周四红 Interaction method of electric chess type chessboard with computer system
CN201558512U (en) * 2009-09-24 2010-08-25 周四红 Electronic chessboard device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2382442Y (en) * 1999-08-23 2000-06-14 白士森 Electronic go chess board
CN101332357A (en) * 2007-06-27 2008-12-31 周四红 Electric go chessboard
CN101380515A (en) * 2007-09-06 2009-03-11 周四红 Interaction method of electric chess type chessboard with computer system
CN201558512U (en) * 2009-09-24 2010-08-25 周四红 Electronic chessboard device

Similar Documents

Publication Publication Date Title
CN103405910A (en) Portable electronic gobang device
CN106178486B (en) Chess playing control method and chess playing device
CN207532800U (en) A kind of rabbit chess toy
CN212166491U (en) Intelligent three-dimensional four-piece chess
US20230338822A1 (en) Intelligent score four
CN210645075U (en) Three-dimensional electronic chess
CN101785924B (en) Square chess
CN109475420B (en) Improvements in board games and dice
CN101862534B (en) Novel chess game
CN102380205B (en) Portable 4*4 square-matrix electronic intelligent magic cube device
CN204337704U (en) A kind of three-dimensional chess
CN214551100U (en) Chess game equipment
CN102266665B (en) Portable intelligence Chinese checker game electronic device
CN102553224A (en) Labyrinth magic cube
US7036820B2 (en) Football board game and method of playing
CN202427146U (en) War chess summoning 'Journey to the West'
CN201304238Y (en) Vertical-face Chinese chess
CA1118002A (en) Counter-spy game
JPH0751084Y2 (en) Bingo game card
CN103578326A (en) Arithmetic chess
CN204193462U (en) A kind of Memory chess
CN116173489A (en) Intelligent chess
CN202682751U (en) Novel Sudoku game disc with disc solving serial numbers
CN202376730U (en) Two-in-one four-state chess
CN203075623U (en) Luminous chess

Legal Events

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

Application publication date: 20131127