# Sultan's Maze shamelessly sped up with help from AI

**URL:** <https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706>\
**Category:** AI-assisted games\
**Tags:** ai\
**Created:** [October 6, 2026, 2:33pm UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706 "2026-10-06T14:33:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ervin](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/ervin/32/87_2.png) [@ervin](https://forum.cpcwiki.eu/u/ervin)\
**Post date:** [October 6, 2026, 2:33pm UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/1 "2026-10-06T14:33:49Z")

</div>

Hi folks.

At work, I’m famous for my stance on AI.

I don’t like it, and I don’t want it in this world.

However, I’ve been told in a polite yet firm way that I’d better get on board, as I am a database dev at a large corporation, and they have… expectations.

Fine. Whatever.

So I thought I’d do a quick bit of messing about with Claude to see how well it can handle Locomotive Basic. Turns out it handles it very well. Cripes.

With the Sultan’s Maze source code to hand, I asked Claude to REM out the commands that draw the vertical lines on the hedges. That worked, and did indeed make the game a bunch more playable.

But there was still a very noticeable pause between each segment of the maze as the screen was being built up. I know exactly which part of the code does all this, but I asked Claude to check it out, pre-calc things, mess with algorithms etc. And the difference is very impressive.

The last thing I wanted to improve was the speed of the map screen, which is very slow to draw. It is much faster now.

Two downsides…

1. The “Making Maze, Please Wait” screen takes longer than it did before, due to pre-calcs being performed.

2. There could be bugs. I can’t be bothered spending more time with Claude tonight to properly test everything and debug any mistakes.

Enjoy!

[sultan\_fast.dsk](https://forum.cpcwiki.eu/uploads/short-url/qZ1dfJdIy4PXVpa6J1FIRSyKwB0.dsk) (190.3 KB)

[sultan\_faster\_making maze.dsk](https://forum.cpcwiki.eu/uploads/short-url/f1tJ0URCDFP5gX4XMqW4EPlAYlg.dsk) (190.3 KB)

---

<div class="post-metadata">

**Author:** ![Typhon](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/typhon/32/173_2.png) [@Typhon](https://forum.cpcwiki.eu/u/Typhon)\
**Post date:** [October 6, 2026, 4:03pm UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/2 "2026-10-06T16:03:00Z")

</div>

Nice. Would be a fun wee project to recode it in C/ASM.

Or redo Roland on the Ropes for 50 fps and no flicker, which is probably just about possible.

---

<div class="post-metadata">

**Author:** ![Gryzor](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/gryzor/32/7_2.png) [@Gryzor](https://forum.cpcwiki.eu/u/Gryzor)\
**Post date:** [October 6, 2026, 4:22pm UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/4 "2026-10-06T16:22:49Z")

</div>

This is nice indeed, but can you post properly in the vibe-coded Games subcategory?

---

<div class="post-metadata">

**Author:** ![ervin](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/ervin/32/87_2.png) [@ervin](https://forum.cpcwiki.eu/u/ervin)\
**Post date:** [October 6, 2026, 10:57pm UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/5 "2026-10-06T22:57:47Z")

</div>

Done 🙂

---

<div class="post-metadata">

**Author:** ![ervin](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/ervin/32/87_2.png) [@ervin](https://forum.cpcwiki.eu/u/ervin)\
**Post date:** [October 7, 2026, 3:56am UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/6 "2026-10-07T03:56:59Z")

</div>

As requested by @Typhon

> [@Roland on the Ropes (AI-assisted turbo edition)](https://forum.cpcwiki.eu/t/roland-on-the-ropes-ai-assisted-turbo-edition/716):
>
> Hi folks. After messing about with Sultan’s Maze ([Sultan's Maze shamelessly sped up with help from AI](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706)), I thought I’d give Roland on the Ropes a go. I asked Claude to see if it could change the scrolling from the large horizontal jumps into something a bit better. And it did. Horizontal scrolling now moves in mode 1 character blocks instead of mode 0 character blocks, which is much nicer. This lead to a messy shimmer on Roland himself, which took some back-and-forth to fix. The next thing to try was a speed-up. This went through a number of iterations and ideas, but as you’ll see, it is a heck of a lot faster now. Finally, the shimmering on the 4 sides of the screen when scrolling. T…

---

<div class="post-metadata">

**Author:** ![Gryzor](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/gryzor/32/7_2.png) [@Gryzor](https://forum.cpcwiki.eu/u/Gryzor)\
**Post date:** [October 7, 2026, 4:09am UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/7 "2026-10-07T04:09:24Z")

</div>

Thanks mate!

---

<div class="post-metadata">

**Author:** ![Gryzor](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/gryzor/32/7_2.png) [@Gryzor](https://forum.cpcwiki.eu/u/Gryzor)\
**Post date:** [October 7, 2026, 4:09am UTC](https://forum.cpcwiki.eu/t/sultans-maze-shamelessly-sped-up-with-help-from-ai/706/8 "2026-10-07T04:09:36Z")

</div>


