Some ideas:
-Have the players design the castle themselves.
-If they know the army is coming, they should use the time well: Harvesting food/water, securing walls, have enough ammunition, make traps, maybe use hit-and-run tactics on the advancing army, look for help (hired?)
Also, why is the...