AI coding workspace
Game save migrations
A saved game carries progress across releases. Saveglint keeps migration code and sample saves in the same AI coding conversation so you can inspect how old data reaches the next version.
● ● ●Saveglint●
A concrete starting point · Game save migrations ×
function migrate(save: SaveV1): SaveV2 {
if (save.version !== 1) throw new Error("version");
return { ...save, version: 2, inventory: [] };
}✳Migrate version-one game saves by adding an inventory field without resetting progress.
✓ ChangesReview before applying ↗
Illustrative workspace
- Connection
- Base URL, credentials and a reachable server.
- Project
- Test an empty inventory, a damaged save and an unsupported newer version while preserving the original file on failure.
- Review before applying
- Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
A concrete starting point
function migrate(save: SaveV1): SaveV2 {
if (save.version !== 1) throw new Error("version");
return { ...save, version: 2, inventory: [] };
}