cd /news/artificial-intelligence/seven-cities-of-gold-recompiled-seve… · home › topics › artificial-intelligence › article
[ARTICLE · art-164522] src=reversedwithai.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Seven Cities of Gold: Recompiled Seven Cities of Gold (C64) into a native macOS port with Claude

Developer Duane Fields has published a native macOS port of the Commodore 64 game Seven Cities of Gold, built in Swift by reverse engineering the original 6502 binaries, with nearly all code, reverse engineering, and documentation written by Claude under the author's direction. The port is verified by asserting ported routines against output captured from the original 6502 code running in an emulator, and it currently reaches milestone one covering navigation, world generation, and exploration, while trade, natives, and scoring are not yet implemented. Users must supply their own original disk images, placed in a 'd64/' directory and processed with './extract.sh', before running the app via 'make run'.

by read1 min views12 publishedNov 1, 2026
Seven Cities of Gold: Recompiled Seven Cities of Gold (C64) into a native macOS port with Claude
Image: Reversedwithai (auto-discovered)

Evidence at a glance #

source evidence…

What was done #

This project reverse engineers the original Commodore 64 binaries of Seven Cities of Gold to create a native macOS port in Swift. The implementation focuses on fidelity to the original simulation rules and art, utilizing AI-assisted code generation and differential verification.

The project reverses the original Commodore 64 disks of Seven Cities of Gold to rebuild the game for macOS using Swift. The author reports that the goal is to maintain fidelity to the original simulation rules, statistics, and randomness, which are recovered from the original binaries and verified against them. The port is built as a thin wrapper around a local Swift package, with the simulation and extraction logic residing in the package and the UI handled by SpriteKit. Almost all code, reverse engineering, and documentation were written by Claude, working from the author's direction. Findings are verified where possible by asserting ported routines against output captured from the original 6502 code running under an emulator. The author notes that some conclusions were initially drawn from measurements that could not support them, and these errors are documented in the project notes. The current status is milestone one, which covers navigation, world generation, and exploration. The game rules, such as trade, natives, and scoring, are not yet implemented. The project requires users to supply their own original disk images for data extraction. See the README for further details.

Reproduce it #

Clone the repository and run 'make run' to start the app. To use the classic map and original terrain art, place disk images in a 'd64/' directory and run './extract.sh' before launching.

Community #

Ask a question, share what worked, or follow the next milestone.

Your library

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @seven cities of gold 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/seven-cities-of-gold…] indexed:0 read:1min 2026-11-01 · —