4D Prince of Persia Question

Questions like: "I can't find the sword" should go here.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: 4D Prince of Persia Question

Post by David »

I made a program in Python. I attached it to this post.
It takes a level (PLV) file, and makes a map if possible, or tells that the level has broken room links.
You can find PLV files in the "levels" folder of apoplexy.

It checks for your properties 1), 2) and 3).
Property 0) is true if both 1) and 3) are true, so I don't check that.
Instead of your OL and NL, I use a queue.
Instead of your T, I use two mappings (associative arrays): one from room numbers to positions, and one from positions to room numbers.
The latter contains 0 for a position if it is known to be empty, this is for checking property 3).
Attachments
is_regular_b.zip
(1.19 KiB) Downloaded 121 times
User avatar
Zaknafein
Sheikh
Sheikh
Posts: 48
Joined: May 1st, 2014, 11:40 pm
Location: Menorca

Re: 4D Prince of Persia Question

Post by Zaknafein »

I don't understand Python, but i'll try to test that function with some PoP level :)
User avatar
Emiliano
Wizard Scribe
Wizard Scribe
Posts: 718
Joined: July 31st, 2019, 8:53 pm
Location: Mexico
Contact:

Re: 4D Prince of Persia Question

Post by Emiliano »


Have anyone explored totally the corrupted levels?
65536
4DPlayer

Re: 4D Prince of Persia Question

Post by 4DPlayer »

Emiliano Fierro wrote: October 14th, 2019, 12:47 am
Have anyone explored totally the corrupted levels?
I have, but I didn’t finish the whole game when exploring them.
User avatar
yourantumayel69
Calif
Calif
Posts: 565
Joined: November 12th, 2019, 9:53 am
Location: Indonesia
Contact:

Re: 4D Prince of Persia Question

Post by yourantumayel69 »

Emiliano Fierro wrote: October 14th, 2019, 12:47 am
Have anyone explored totally the corrupted levels?
I have it, but I finished all levels.
Pengkhotbah 3:1 (TB) Untuk segala sesuatu ada masanya, untuk apa pun di bawah langit ada waktunya.
Post Reply