Method for displaying battle interface in terminal, device, and storage medium thereof
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJian LUO
Life of this patent
Estimating the term…
Abstract
A method for displaying a battle interface in a terminal is provided. The method includes: displaying a battle board in a user interface (UI) of a screen; obtaining an ith location switching instruction; eliminating connected to-be-eliminated elements with a same type according to the ith location switching instruction; displaying placeholder identifiers of lattices corresponding to the eliminated elements as a first placeholder identifier; and displaying a winner.
Claims20
A method for displaying a battle interface in a terminal, performed by a terminal, the method comprising:
- displaying a battle board in a user interface (UI) of a screen, a plurality of arrayed lattices in the battle board configured to display corresponding to-be-eliminated elements and placeholder identifiers, and a placeholder identifier of at least one lattice in an initial state being a first placeholder identifier corresponding to a current account;
- obtaining, in an ith round of n rounds, an ith location switching instruction for switching locations of a first to-be-eliminated element and a second to-be-eliminated element that are adjacent, the n rounds being operation timing units during which at least two accounts alternately have operation permission, the ith round being a round in which the current account has operation permission, n being a natural number, i being a natural number, and 1≤i≤n;
- switching the first to-be-eliminated element and the second to-be-eliminated element according to the ith location switching instruction;
- in response to a predetermined quantity of to-be-eliminated elements with a same type being connected after the locations of the first to-be-eliminated element and the second to-be-eliminated element are switched, eliminating connected to-be-eliminated elements with the same type;
- in response to the eliminated elements comprising an element having the first placeholder identifier, displaying placeholder identifiers of lattices corresponding to the eliminated elements as the first placeholder identifier;
- and
- displaying a winner among the at least two accounts according to the placeholder identifiers of the lattices on the battle board and a winning condition.
A method for displaying a battle interface in a terminal, performed by a server, the method comprising:
- recording board data of a battle board, the battle board comprising a plurality of arrayed lattices, and the board data comprising to-be-eliminated elements and placeholder identifiers displayed on the lattices;
- receiving, in an ith round of n rounds, an ith location switching instruction from a target terminal corresponding to a target account,
- the ith location switching instruction comprising an instruction to switch locations of a first to-be-eliminated element and a second to-be-eliminated element that are adjacent,
- the n rounds being operation timing units during which at least two accounts alternately have operation permission,
- the at least two accounts comprising the target account, and
- the ith round being a round in which the target account has operation permission, n being a natural number, i being a natural number, and 1≤i≤n;
- switching display locations of the first to-be-eliminated element and the second to-be-eliminated element in the board data according to the ith location switching instruction;
- transmitting a first instruction to terminals respectively corresponding to the at least two accounts in response to a predetermined quantity of to-be-eliminated elements with the same type are connected after the locations of the first to-be-eliminated element and the second to-be-eliminated element are switched, the first instruction comprising an instruction to eliminate connected eliminated elements with the same type;
- transmitting a second instruction to the terminals respectively corresponding to the at least two accounts in response to the eliminated elements comprising an element having a first placeholder identifier, the second instruction comprising an instruction to display placeholder identifiers of lattices corresponding to the eliminated elements as the first placeholder identifier, the first placeholder identifier being a placeholder identifier corresponding to the target account;
- determining a winner among the at least two accounts according to the placeholder identifiers of the lattices on the battle board and a winning condition;
- and
- transmitting a third instruction to the terminals respectively corresponding to the at least two accounts, the third instruction comprising an instruction to display the winner.
A non-volatile computer-readable storage medium, storing a computer-readable instruction, the computer-readable instruction, when executed by one or more processors, causing the one or more processors to:
- display a battle board in a user interface (UI) of a screen, a plurality of arrayed lattices in the battle board configured to display corresponding to-be-eliminated elements and placeholder identifiers, and a placeholder identifier of at least one lattice in an initial state being a first placeholder identifier corresponding to a current account;
- obtain, in an ith round of n rounds, an ith location switching instruction for switching locations of a first to-be-eliminated element and a second to-be-eliminated element that are adjacent, the n rounds being operation timing units during which at least two accounts alternately have operation permission, the ith round being a round in which the current account has operation permission, n being a natural number, i being a natural number, and 1≤i≤n;
- switch the first to-be-eliminated element and the second to-be-eliminated element according to the ith location switching instruction;
- in response to a predetermined quantity of to-be-eliminated elements with the same type are connected after the locations of the first to-be-eliminated element and the second to-be-eliminated element are switched, eliminate connected to-be-eliminated elements with the same type;
- in response to the eliminated elements comprising an element having the first placeholder identifier, display placeholder identifiers of lattices corresponding to the eliminated elements as the first placeholder identifier;
- and
- display a winner among the at least two accounts according to the placeholder identifiers of the lattices on the battle board and a winning condition.
Dependencies are inferred from the claim text.