Card game anti-cheating system and method based on NFC technologyTechnical Field
The invention belongs to the technical field of card game competition anti-cheating, and particularly relates to a card game anti-cheating system based on an NFC technology.
Background
With the development of the technology level, the chess and card game industry is divided into two obvious development stages: the first stage is mainly played by a small part of people, such as a fighting main, mahjong, texas playing cards and the like; the second stage is a chess and card movement, upgrading from playing a game to a game or large activity. With the new play of the second stage, various cheating actions can occur to contestants in various chess and card game contests in order to obtain contest prizes.
From the beginning of the game, the game is manually or mechanically shuffled and distributed to each player, and to the course of the game, and then to the end of the game, whether in the manual shuffling or the mechanical shuffling stage or the course of the game, various cheating actions exist, such as dealing cheats, playing cards, losing cards or hiding cards cheating by players participating in the game, playing magic cards cheating by players participating in the game, intentional delay time cheating and other series of cheating means. In the process of shuffling, dealing and competition, players can possibly find and ask questions when the game is finished, the original sequence of the playing cards is disturbed, the winner and the shuffling person prove the own serum, and the loser prove the problems in the process of shuffling, dealing and competition, so that the players are not easy to deal, and a lot of disputes are generated.
Meanwhile, the playing cards are easy to wear and break in hands of people and need to be replaced periodically, so that the game cost is increased, and in the use process, pathogens such as bacteria or viruses carried by one person can be transmitted to the other person by the playing cards, so that the probability of disease epidemic is increased.
In view of such problems, there are some researches at present, but there is no low cost to completely solve all the problems above, and for this purpose, it is necessary to design a card game anti-cheating system based on NFC technology that can solve the above problems.
Disclosure of Invention
The invention aims to solve the technical problem of overcoming the defects of the prior art and providing a card game anti-cheating system based on NFC technology.
The invention provides a card game anti-cheating system based on NFC technology, which comprises a card system with NFC labels, an NFC reader-writer system, a server and a game competition system, wherein the ID coding information of each card in the card system with NFC labels is different and unique; the NFC reader-writer system and the game competition system are connected with the server; and the card system with the NFC tag enters an identification area of the NFC reader-writer system to be sequentially read, and then a game match is carried out on the mobile phone.
The invention also provides a card game cheating prevention method based on the NFC technology, which comprises the following steps:
S101, generating card IDs with NFC labels in a server according to game information, card information and random passwords in a game system, wherein the generated ID codes of each card with the NFC labels are unique;
s102, generating unique card ID codes according to a server, sequentially writing the ID codes of the card system with the NFC tag, storing the ID codes into a data storage area of the card system, and simultaneously storing one part of ID code data and ID code ciphertext code data encrypted according to a certain rule in the server;
S103, after the competition starts, the NFC reader-writer system reads each card system through an NFC technology in a read-write chip;
s104, the NFC reader reads ID coding information of the card and simultaneously transmits the information to the server;
S105, the server performs anti-cheating verification on each incoming card ID code, and verifies whether the card code is in a previously stored card code database;
S106, when the server verifies the abnormal card, the server informs the NFC reader-writer system to stop verification, transmits abnormal information to the game competition system and analyzes the reason that alarm abnormality possibly occurs;
S107, after the completion of the card grabbing, the server background verifies the information again, so that the phenomena of card losing and card changing are avoided, an alarm can be given out and the competition is paused if a problem system appears, and if no abnormality appears, the step 108 is needed to be executed;
s108, the server transmits card information to a game competition system, and a contestant plays a competition at a mobile phone terminal system;
s109, in the competition process, the game competition system records the whole competition process, so that the competition playback review competition can be carried out when problems occur in the later period;
And S110, after the competition is finished, the game competition system transmits competition information to a server, and the server performs review of normal competition so as to ensure fairness and fairness of the competition.
The card game anti-cheating system based on the NFC technology is used for avoiding serious cheating problems such as magic playing cards, lost card changing, intentional delay time, incapability of playing back and verifying the game process and the like in the game process by combining the NFC technology, the server and the game playing system.
The invention further adopts the technical scheme that:
In the step S101, the game information includes at least a game time and a game play time, the card information includes at least a card suit and a card point, and the random password of the game play system includes at least six digits, and all the above information forms a unique card ID code.
In the step S102, the specific method for writing the ID code into the card is as follows: connecting the NFC reader-writer system with a server, entering an identification area of the NFC reader-writer system through a card system with an NFC tag for identification, feeding back an identification result to a matching interface, matching the matching interface according to information fed back by the identification area, and transmitting the matching result to a read-write chip through a radio frequency interface if the matching is successful; the server is connected with a microcontroller in the NFC card reader system, the read-write chip is controlled through the control host interface, and the ID codes of the card system with the NFC tag are sequentially written in through the read-write chip according to unique card ID codes generated by the server. The card system with the NFC tag receives a writing signal of the NFC card reader system through the antenna, the writing signal is transmitted into the bus through the antenna interface, the storage control coordinates each interface to synchronously operate through the bus, the received ID coding information is stored in a data storage area with the NFC tag card system, meanwhile, one part of ID coding data and the ID ciphertext coding data encrypted according to a certain rule are also stored in the server, and after the writing is correctly performed, the ID ciphertext coding data cannot be modified in the competition period.
In step S103, after the game starts, each time a player catches a card or divides the card, the player reads and writes in the NFC reader-writer system, and the NFC reader-writer system can read each card by means of the read-write chip as long as the player lightly bumps the card, and each action can be completed in 0.3 seconds.
In step S105, the server encrypts the received card ID code according to a certain rule and then compares and matches the encrypted card ID code with the ciphertext of the database, if the received card ID encrypted code is inconsistent with the encrypted information stored in the card data, the card is determined to be an abnormal card, otherwise, the card is determined to be a normal card. Thus, the possible cheating of a plurality of cards, magic cards and the like can be prevented.
In step S106, when the server verifies the abnormal card, the server notifies the NFC reader system to stop verification, and transmits abnormal information to the game play system; the server needs to record all data of this alarm, including but not limited to abnormal card numbers, card points, card suits, playing time, playing field level, etc., and analyze the possible reasons for the alarm abnormality according to the original card ID code.
In the step S107, after the completion of the card grabbing, the background re-verifies information including, but not limited to, the number of cards of each player, the grabbing sequence of the cards of the player, the time sequence, the card numbers and the card marks, so as to avoid the card losing or card changing phenomenon, and if a problem occurs, the system gives an alarm and pauses the game.
In the step S108, the server transmits the card information to the game competition system, and the competitors compete in the mobile phone game competition system, so that the possibility of disease popularity is reduced; on the other hand, the abrasion to the playing cards is reduced, the service life is prolonged, and the game cost is reduced.
In step S109, during the game, the game system records the whole game process, including at least the time of each card play, the contestant ID code of each card play, the card point of each card play, the card suit of each card play, and the like, and plays back the game when a problem occurs in the later stage.
In the step S110, after the game is finished, the game system transmits the game information to the server, and the server performs normal game review including, but not limited to, the whole game process, abnormal card identification, abnormal card number and other actions to ensure fairness and fairness of the game.
The invention can avoid the cheating actions of magic card changing and no-accident card losing and hiding in the game process.
Drawings
Fig. 1 is a frame diagram of a card game anti-cheating system based on NFC technology in the present invention.
Fig. 2 is a flowchart of a card anti-cheating system based on NFC technology in the present invention.
Fig. 3 is a schematic structural diagram of the NFC tag card system of the present invention.
Fig. 4 is a physical block diagram of a card system with NFC tags in accordance with the present invention.
Fig. 5 is a schematic structural diagram of an NFC reader system in the present invention.
Fig. 6 is a physical structure diagram of an NFC reader system in the present invention.
In the figure: 1. the game playing system comprises a game playing system, a server, a 3 NFC reader-writer, 4 cards with NFC labels, 5 card faces, 6 card NFC chip labels, 7 card bottoms, 8 abnormal indicator lamps, 9 card remainder and 10 NFC identification areas.
Detailed Description
The technical scheme of the invention is further described in detail below with reference to the accompanying drawings: the present embodiment is implemented on the premise of the technical scheme of the present invention, and a detailed implementation manner and a specific operation process are provided, but the protection rights of the present invention are not limited to the following embodiments.
The embodiment provides a card game cheating prevention system based on NFC technology, which comprises a game competition system 1, a server 2, an NFC reader-writer system 3 and a card system 4 with NFC labels (see figure 1). Wherein, the card system with the NFC label comprises a card face 5, a card NFC chip label 6 and a card bottom 7 (see figure 3); the card system physical structure with the NFC tag comprises an antenna, an antenna interface, a bus, a power supply part, a clock interface, a serial port (interface-like unit), a main control interface, a storage control (data storage and temporary storage) and other interfaces (see figure 4); the NFC reader/writer system includes an abnormality indicator lamp 8, a hand remaining number 9, and an NFC identification area 10 (see fig. 5); the NFC reader system physical structure comprises a microcontroller, a host interface, a read-write chip, a radio frequency interface, a matching interface and an identification area.
The method comprises the following specific steps:
S101, playing information in a server at least comprises playing time and playing times, and the card information at least comprises card designs and card points and a six-digit password randomly generated by a system generates unique card ID codes with NFC labels according to a certain rule.
S102, connecting the NFC reader-writer system with a server, entering an identification area of the NFC reader-writer system through the card system with the NFC tag, sequentially writing ID codes into each card system with the NFC tag according to unique card ID codes generated by the server, storing the ID codes into a data storage area of the card system, storing one piece of ID code data and the encrypted ID ciphertext code data according to a certain rule in the server, and after the ID codes are correctly written, being unable to be modified in a competition period.
S103, after the competition starts, each time a player catches a card or divides the card, the card is read and written in the NFC reader-writer system, and the NFC reader-writer system can read each card by means of the identification area, the matching interface, the radio frequency interface and the read-write chip only by lightly touching the card, and each action can be completed within 0.3 seconds;
S104, the NFC reader system reads ID coding information of the card and simultaneously transmits the information to the server;
S105, the server performs anti-cheating verification on each incoming ID code, verifies whether the card code is in a previously stored card database, and prevents the possibility of cheating of multiple cards, magic cards and the like;
And S106, when the server verifies the abnormal card, the server informs the NFC reader-writer to stop verification and transmits abnormal information to the game competition system. And the server needs to record all data of the alarm, including but not limited to abnormal card numbers, card points, card flower colors, competition time, competition field level and other information, and analyze the possible reasons for the alarm abnormality;
S107, after the completion of card grabbing, the background verifies information again, including but not limited to the card number of each player, the grabbing sequence and time sequence of the cards of the player, card number card marks and card number verification, so that the phenomena of card losing and card changing are avoided, if a problem system can give an alarm and pause a game, and if no abnormality occurs, the step 108 needs to be executed;
s108, the server transmits card information to a game competition system, and contestants compete in the mobile phone terminal system, so that the possibility of disease popularity is reduced; on the other hand, the abrasion to the playing cards is reduced, the service life is prolonged, and the game cost is reduced;
S109, in the competition process, the game competition system records the whole competition process at least including the time of each card playing, the contestant ID code of each card playing, the card point of each card playing, the card suit of each card playing and other information, so that the competition playback and the competition can be conducted when problems occur in the later period;
And S110, after the competition is finished, the game competition system transmits competition information to a server, and the server performs normal competition review including, but not limited to, the whole competition process, abnormal card identification, abnormal card quantity and other actions so as to ensure fairness and fairness of the competition.
Taking a whipped egg game as an example, the embodiment specifically comprises the following steps:
s101, before a game starts, playing information in a server at least comprises playing time and playing field number, card information at least comprises card flower color and card point number, and at least six-digit numerical codes randomly generated by a game system generate unique card ID codes with NFC labels according to a certain rule, and the specific is shown in a table 1.
Table 1 shows card information
S102, connecting the NFC reader-writer system with a server, entering an identification area of the NFC reader-writer system through a card system with an NFC tag, feeding back an identification result to a matching interface, matching the identification result according to information fed back by the identification area, and transmitting the identification result to a read-write chip through a radio frequency interface if the matching is successful; the server is connected with the micro controller in the NFC card reader system, the read-write chip is controlled through the control host interface, and the read-write chip is used for sequentially writing the ID codes of the card system with the NFC tag according to the unique card ID codes generated by the server. The card system with the NFC tag receives a writing signal of the NFC card reader system through the antenna, the writing signal is transmitted into the bus through the antenna interface, the storage control coordinates each interface to synchronously operate through the bus, the received ID coding information is stored in a data storage area with the NFC tag card system, meanwhile, one part of ID coding data and the ID ciphertext coding data encrypted according to a certain rule are also stored in the server, and after the writing is correctly performed, the ID ciphertext coding data cannot be modified in the competition period.
Table 2 shows the storage formats in the server
| 000 | ID code mark | ID ciphertext code mark |
| 001 | 001C02202104200001666666 | 124624 |
| 002 | 002D02202104200001666666 | 152641 |
| 003 | 003H02202104200001666666 | 455923 |
| 004 | 004S02202104200001666666 | 654655 |
| ... | ... | ... |
S103, after the competition starts, each time a player catches a card or divides the card, the card is read in the NFC reader-writer system, the whole reading process only needs to lightly touch the card in the identification area of the NFC reader-writer system, the NFC reader-writer can read each card by means of the NFC technology, each action can be completed in 0.3 seconds, and the competition process is ensured not to write in the system to delay time;
S104, after the NFC reader system reads in, the read ID code is transmitted into a server;
Table 3 reading information in race
| Playing card information | Transmission ID coding |
| 001C02202104200001666666 |
| ... | ... |
S105, the server compares and matches the received card ID codes with ciphertext of the database after encrypting according to a certain rule, if the received card ID codes are inconsistent with the encryption information stored in the card data, the card ID codes are judged to be abnormal cards, otherwise, the card ID codes are judged to be normal cards. Thus, the possible cheating of a plurality of cards, magic cards and the like can be prevented.
TABLE 4 anti-cheating authentication information
| Playing card information | Incoming ID coding | Database ID encoding | Ciphertext encoding | Incoming ciphertext encoding |
| 001C02202104200001666666 | 001C02202104200001666666 | 124624 | 124624 |
| ... | ... | | | |
And S106, when the server verifies the abnormal card, the server informs the NFC reader-writer system to stop verification and transmits abnormal information to the game competition system. And the server needs to record all data of the alarm, including but not limited to abnormal card numbers, card points, card suit, game time, playing field level and other information, and analyze the possible reasons for the alarm abnormality according to the original card ID codes.
TABLE 5 card information error reporting
S107, after the completion of card grabbing, the background verifies information again, including but not limited to the card number of each player, the grabbing sequence and time sequence of the cards of the player, card number card marks and card number verification, so that the phenomena of card losing and card changing are avoided, if a problem system can give an alarm and pause a game, and if no abnormality occurs, the step 108 needs to be executed;
s108, the server transmits card information to a game competition system, and contestants compete in the mobile phone terminal system, so that the possibility of disease popularity is reduced; on the other hand, the abrasion to the playing cards is reduced, the service life is prolonged, and the game cost is reduced;
S109, in the competition process, the game competition system records the whole competition process and at least comprises information such as the time of each card playing, the ID code of a competitor who plays each card, the ID code of a card which plays each card, the card point of each card playing, the card color of each card playing and the like, and can play back and review the competition when problems occur in the later stage;
table 6 competition process information record
| Numbering device | Card time | Player ID encoding | Design and color | Point count |
| 1 | 20210420120000 | 001 | C | 2 |
| 2 | 20210420120020 | 003 | H | 3 |
| 3 | 20210420120030 | 002 | D | 4 |
| ... | ... | ... | ... | ... |
And S110, after the game is finished, the game competition system transmits competition information to the server, and the server performs normal competition review including, but not limited to, the whole competition process, abnormal card identification, abnormal card quantity and other actions so as to ensure fairness and fairness of the competition, and if the competition is required to be reviewed manually or reviewed back, the game competition system can also be called for competition playback.
The foregoing is merely illustrative of the embodiments of the present invention, and the scope of the present invention is not limited thereto, and any person skilled in the art will appreciate that modifications and substitutions are within the scope of the present invention, and the scope of the present invention is defined by the appended claims.