[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
This preset originally just stored the seed for randomizing the pieces. Constants were not yet a part of GAME Code, and they were not being used to store the position. When PHP changed the algorithm used for randomization, this broke all past games. To prevent this from happening in the future, I added constants to the language and used them to store the opening position in the log. This did not fix older games, though.
An update to PHP included a flag for srand() that allegedly tells it to use the old randomization algorithm. Despite using this flag with srand(), this has not fixed old logs. So, the only solution is to calculate the original position by analyzing the moves.