CPC A63F 3/02 (2013.01) [A63F 13/44 (2014.09); A63F 13/47 (2014.09); A63F 13/822 (2014.09)] | 20 Claims |
1. A computer-implemented method for speeding up a computation of a determination of a player-eliminating condition in a turn-based computer game with three or more players by reducing a number of branches of calculation in the computation, the computer-implemented method comprising:
obtaining a game state of the turn-based computer game describing positions of pieces and a plurality of branches of calculations for movement of the pieces;
receiving a move from a first player that puts a second player's captain piece in check;
determining whether the move from the first player results in the player-eliminating condition against the second player, wherein the determination comprises:
removing a first set of branches of calculations that include the second player moving the second player's captain piece to a place that puts the captain piece in other check;
removing a second set of branches of calculations that include the second player moving any of the second player's non-captain piece that results in the captain piece in other check;
evaluating how many checks the captain piece is in; and
in response to determining the captain piece is in more than one check, removing a third set of branches of calculations that include the second player moving any of the second player's army pieces to protect the captain piece;
receiving, via a client device of the second player displaying a graphical user interface, selection of a piece of the second player to move; and
illustrating, via the graphical user interface, valid moves of the selected piece.
|