I noticed there are quite a few snake and ladders teases released recently and i noticed that they are easily created. So i made i generator for them. It's script written in Python 2 and all you have to do is to run the gen and place images you want each page to have in a folder.
The generator is quite simple. You can easily edit how many pages should the game have (100 is default), how many of that are ladders and how many snakes which means how easy or hard the tease will be. You can also change some minor stuff like how far can snakes or ladders bring you or if they can chain (ladder/snake leading directly to another ladder or snake).
Some other detailed semi-dev info:
- Spoiler: show
- - When you run the script there is string written in console which shows the level. Each normal field is dash symbol (-), every snake is exclamation mark (!) and ladder is right arrow (>). So by looking at it you get basic idea how the tease looks like. If you don't like it you can just run it again to generate new tease.
- The script checks if the tease is valid. Valid tease always starts and ends with normal field (no snake or ladder at first/last field) and its always doable (you cannot get tease where there are six and more snakes after each other - you couldnt get over those even if you rolled six!)
The generated tease is pretty simple. Dice rolling is automatic so there is always just 1 button. There is always a number on every page which denotes what page are you on. Also if you hit ladder or snake page it says so with info where does the snake/ladder lead to. Apart from that there is nothing more. No metromomes, timers or anything.
So here is what you have to do to generate your very own snakes and ladders tease:
- Get Python 2 here
- Download the script to generate the tease here
- Run the script (either by double clicking or opening command line, enter folder with the script and then run it by typing "py gen.py")
- In the folder where your script is there should be new file created called "ladders.xml", that is your generated tease
- Create a new folder in the same folder called "imgs" and place there images in format N.jpg where N is 0, 1, 2, 3 ...., 11, 12... etc. each number for 1 page in your tease (notice it starts from 0! the pages in tease are moved by 1 so page 5 displays on page 6.)
- Load the ladders.xml to GuideMe and enjoy
The script is very basic, you can edit it to your liking. Feel free to share your created teases or modified script here but please dont spread this script to other websited or forums :)
Edit: As a bonus include python script which renames all *.jpg images in same folder where its ran to N.jpg where N is 0, 1, 2.. The images are shuffled in proccess! So just download all images you want into "imgs" folder, place there this script and run it. They will be shuffled and named to be accepted by the tease ;) You can download it
here or
here.
Edit 2: Scripts updated. Links in post updated to reflect it. Changelog:
- Spoiler: show
- - Forced python 2 by #!python2
- Ladders and snakes max length separated
- Added option to include "Edge" button. The idea is that when you edge, click this button and you will be moved back by preset number of fields as a penalty you couldn't hold back.
- Fixed error when max length of snaked aor ladders was set 0
- KNOWN ISSUE: If you have "can_chain" set to True it is possible to have enless loop of snakes and ladders created.