PatrickHechler / SquareConquerer

A nice game
GNU Affero General Public License v3.0
0 stars 0 forks source link

new feature: not trust the server, change: execute turns randomly #8

Open PatrickHechler opened 1 year ago

PatrickHechler commented 1 year ago

let the server save the entire start world + the random seed. let the server then save all user turns. make turns and entity turns comparable and then sort them before they get randomly ordered and then executed. (sorting before random order needed because it needs to be reproduced after the game end by the users) after the game ended, the server sends the data to all users. (send maybe the data to users when they get defeated)

PatrickHechler commented 1 year ago

save only the start world, the user placer implementation and the worlds random seed give the user placer at game start a sorted list of all users then also the start position can be reproduced #9 (the user placer should then not use random values from other sources then the worlds own random)

PatrickHechler commented 1 year ago

also change the user so that all users are placed when the game starts