Methods, apparatuses, devices and storage media for processing game states
Abstract
Methods, apparatuses, devices and storage media for processing game states are provided in the disclosure, the method comprising: in response to a first state switching instruction, switching a game from an idle state to a first state; acquiring first operation information of one or more operations performed on a first marker by a first object participating in the game in the first state; in response to detecting a second marker in a preset area, switching the game to a second state; acquiring second operation information of one or more operations performed on the second marker by a second object participating in the game in the second state; in response to that a game result is generated based on the second operation information, switching the game to a result processing state; performing result processing on the first operation information according to the game result.
Claims
exact text as granted — not AI-modified1 . A method of processing game states, comprising:
in response to a first state switching instruction, switching a game from an idle state to a first state; acquiring first operation information of one or more operations performed on a first marker by a first object participating in the game in the first state; in response to detecting a second marker in a preset area, switching the game to a second state; acquiring second operation information of one or more operations performed on the second marker by a second object participating in the game in the second state; in response to that a game result is generated based on the second operation information, switching the game to a result processing state; performing result processing on the first operation information according to the game result.
2 . The method according to claim 1 , further comprises:
in a case that the game is in the second state, in response to determining that the second operation information is abnormal based on a preset operation rule, switching the game to a halt state.
3 . The method according to claim 1 , further comprises:
in a case that the game is in the second state or the result processing state, in response to detecting that the first marker in the preset area is changed, switching the game to a halt state.
4 . The method according to claim 2 , further comprises:
in a case that the game is in the halt state,
switching the game to the first state according to the first state switching instruction; or,
switching the game to the second state according to second state switching instruction; or,
switching the game to the result processing state according to result state switching instruction.
5 . The method according to claim 1 , wherein, the preset area comprises a first operating area for the first object to perform an operation, acquiring the first operation information of one or more operations performed on the first marker by the first object participating in the game in the first state comprises:
in a case that the game is in the first state, acquiring, based on a video stream of the preset area, the first operation information of one or more operations performed on the first marker by the first object in the first operating area.
6 . The method according to claim 5 , wherein the first operating area comprises two or more first operating sub-areas, acquiring the first operation information of one or more operations performed on the first marker by the first object in the first operating area comprises:
acquiring the first operation information of one or more operations performed on the first marker by the first object in each of the first operating sub-areas.
7 . The method according to claim 1 , wherein the preset area comprises a second operating area for the second object to perform an operation, acquiring the second operation information of one or more operations performed on the second marker by the second object participating in the game in the second state comprises:
in a case that the game is in the second state, acquiring, based on a video stream of the preset area, the second operation information of one or more operations performed on the second marker by the second object in the second operating area.
8 . The method according to claim 7 , wherein the second operating area comprises two or more second operating sub-areas, acquiring the second operation information of one or more operations performed on the second marker by the second object in the second operating area comprises:
acquiring the second operation information of one or more operations performed on the second marker by the second object in each of the second operating sub-areas.
9 . The method according to claim 7 , wherein, generating the game result based on the second operation information comprises:
in a case that the game is in the second state, detecting, based on a video stream of the preset area, second identification information of the second marker in the second operating area; determining the game result based on the second identification information.
10 . The method according to claim 1 , further comprises at least one of:
in response to switching the game to the first state, acquiring the first operation information from a detection based on an acquired video stream of the preset area; or, in response to switching the game to the second state, acquiring the second operation information from a detection based on the acquired video stream of the preset area; wherein, the video stream comprises respective video streams which are synchronously captured in the preset area from a plurality of viewing angles, the plurality of viewing angles comprises at least one side viewing angle and at least one top viewing angle, the at least one side viewing angle comprises at least one of a left side viewing angle or a right side viewing angle.
11 . The method according to claim 1 , acquiring the first operation information of one or more operations performed on the first marker by the first object participating in the game in the first state, comprises:
in response to switching the game to the first state, acquiring the first operation information by performing a detection on a plurality of images comprised in a video stream of the preset area; wherein, performing a detection on any one of the images comprised in the video stream comprises: performing a detection on the image to determine current first identification information of the first marker in the image; determining the first operation information according to a difference between the current first identification information and historical first identification information stored for the game.
12 . The method according to claim 1 , acquiring the second operation information of one or more operations performed on the second marker by the second object participating in the game in the second state, comprises:
in response to switching the game to the second state, acquiring the second operation information by performing a detection on a plurality of images comprised in a video stream of the preset area; wherein, performing a detection on any one of the images comprised in the video stream comprises:
performing a detection on the image to determine current second identification information of the second marker in the image;
determining the second operation information according to a difference between the current second identification information and historical second identification information stored for the game.
13 . The method according to claim 12 , wherein
the first marker indicates one or more game coins; the second marker indicates one or more cards; the current second identification information or the historical second identification information comprises one or more of the following: card value, suit, information of located area, location information.
14 . A computer device, comprising:
at least one processor; and one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to perform operations for processing game states, the operations comprising: in response to a first state switching instruction, switching a game from an idle state to a first state; acquiring first operation information of one or more operations performed on a first marker by a first object participating in the game in the first state; in response to detecting a second marker in a preset area, switching the game to a second state; acquiring second operation information of one or more operations performed on the second marker by a second object participating in the game in the second state; in response to that a game result is generated based on the second operation information, switching the game to a result processing state; performing result processing on the first operation information according to the game result.
15 . The computer device according to claim 14 , wherein the operations further comprise:
in a case that the game is in the second state, in response to determining that the second operation information is abnormal based on a preset operation rule, switching the game to a halt state.
16 . The computer device according to claim 14 , wherein the operations further comprise:
in a case that the game is in the second state or the result processing state, in response to detecting that the first marker in the preset area is changed, switching the game to a halt state.
17 . The computer device according to claim 15 , wherein the operations further comprise:
in a case that the game is in the halt state,
switching the game to the first state according to the first state switching instruction; or,
switching the game to the second state according to second state switching instruction; or,
switching the game to the result processing state according to result state switching instruction.
18 . The computer device according to claim 14 , wherein, the preset area comprises a first operating area for the first object to perform an operation, acquiring the first operation information of one or more operations performed on the first marker by the first object participating in the game in the first state comprises:
in a case that the game is in the first state, acquiring, based on a video stream of the preset area, the first operation information of one or more operations performed on the first marker by the first object in the first operating area.
19 . The computer device according to claim 18 , wherein the first operating area comprises two or more first operating sub-areas, acquiring the first operation information of one or more operations performed on the first marker by the first object in the first operating area comprises:
acquiring the first operation information of one or more operations performed on the first marker by the first object in each of the first operating sub-areas.
20 . A computer readable storage medium coupled to the at least one processor and storing programming instructions for execution by the at least one processor, wherein the programming instructions instruct the at least one processor to perform operations for processing game states, the operations comprising:
in response to a first state switching instruction, switching a game from an idle state to a first state; acquiring first operation information of one or more operations performed on a first marker by a first object participating in the game in the first state; in response to detecting a second marker in a preset area, switching the game to a second state; acquiring second operation information of one or more operations performed on the second marker by a second object participating in the game in the second state; in response to that a game result is generated based on the second operation information, switching the game to a result processing state; performing result processing on the first operation information according to the game result.Join the waitlist — get patent alerts
Track US2022339541A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.