🕸📝Fergus Duniho wrote on Sun, Mar 13, 2022 10:17 PM UTC:
The code for handling every piece but the Kings being held in hand seems to be working now. Instead of expanding the area of the board available for captured pieces, it uses a couple variables to hold the last two pieces. When the last two captured pieces are not Pawns, it switches them with Pawns, so that they remain available for dropping. As pieces are dropped, it moves Pawns from the variables back to the visible in-hand area. In practice, actual games will usually not get this far, and they will have no need for this code. The updated preset seems to be displaying past games well, though since Shogi is the most popular game on Game Courier, I have not tested them all.
The code for handling every piece but the Kings being held in hand seems to be working now. Instead of expanding the area of the board available for captured pieces, it uses a couple variables to hold the last two pieces. When the last two captured pieces are not Pawns, it switches them with Pawns, so that they remain available for dropping. As pieces are dropped, it moves Pawns from the variables back to the visible in-hand area. In practice, actual games will usually not get this far, and they will have no need for this code. The updated preset seems to be displaying past games well, though since Shogi is the most popular game on Game Courier, I have not tested them all.