Nand Blog

Games, software and BGG...
Recommend
7 
 Thumb up
 tip
 Hide

nanDECK - Metro/Tsuro hex tiles

Andrea Nand
Italy
Modena
flag msg tools
Best. Game. Ever.
badge
I wrote nanDECK and BGG1tool
Avatar
mbmbmbmbmb
Thinking about the Metro tiles, I have made a script in nanDECK for creating hexagonal ones (in Metro, or Tsuro, the tiles are squares).

First, I wrote this, for creating a sequence of all permutations:

pxxs[alfa]12 = a|a|b|b|c|c|d|d|e|e|f|f
[res] = savelabel("pxxs12.txt", alfa)


I've put a separate script because it took a very long amount of time with my PC (~ 90 min.). In detail, each path is identified by a pair of equal letters, six for each tile (in Tsuro, there are four paths), the pxxs prefix stands for:
p = permutations
xx = for excluding rotations, two because in each side there are two paths
s = for excluding combinations with the same structure (aabbccddeeff is the same of bbaaccddeeff).

The result is a list named "pxxs12.txt", with 1799 permutations. Well, 1799 tiles are a bit too much for a game, but if someone want only a subset, the list is a good start...

This is the script that draws the tiles:

macro=tile,(range),(key),(char),(color),(width)
beziers=(range)
if=[(key):1,1]=(char)
beziers=(range),60%,20%,50%,30%,(color),(width)
endif
if=[(key):2,1]=(char)
beziers=(range),85%,30%,75%,40%,(color),(width)
endif
if=[(key):3,1]=(char)
beziers=(range),93%,40%,75%,40%,(color),(width)
endif
if=[(key):4,1]=(char)
beziers=(range),93%,60%,75%,60%,(color),(width)
endif
if=[(key):5,1]=(char)
beziers=(range),85%,70%,75%,60%,(color),(width)
endif
if=[(key):6,1]=(char)
beziers=(range),60%,80%,50%,70%,(color),(width)
endif
if=[(key):7,1]=(char)
beziers=(range),40%,80%,50%,70%,(color),(width)
endif
if=[(key):8,1]=(char)
beziers=(range),15%,70%,25%,60%,(color),(width)
endif
if=[(key):9,1]=(char)
beziers=(range), 7%,60%,25%,60%,(color),(width)
endif
if=[(key):10,1]=(char)
beziers=(range), 7%,40%,25%,40%,(color),(width)
endif
if=[(key):11,1]=(char)
beziers=(range),15%,30%,25%,40%,(color),(width)
endif
if=[(key):12,1]=(char)
beziers=(range),40%,20%,50%,30%,(color),(width)
endif
end

link=pxxs12.txt,list

[range]=1-{(list)}

[wid_out]=0.4
[wid_in]=0.3

polygon=[range],0,0,100%,100%,6,0,#000000,EMPTY,0.1

tile=[range],[list],a,#000000,[wid_out]
tile=[range],[list],a,#FFFFFF,[wid_in]
tile=[range],[list],b,#000000,[wid_out]
tile=[range],[list],b,#FFFFFF,[wid_in]
tile=[range],[list],c,#000000,[wid_out]
tile=[range],[list],c,#FFFFFF,[wid_in]
tile=[range],[list],d,#000000,[wid_out]
tile=[range],[list],d,#FFFFFF,[wid_in]
tile=[range],[list],e,#000000,[wid_out]
tile=[range],[list],e,#FFFFFF,[wid_in]
tile=[range],[list],f,#000000,[wid_out]
tile=[range],[list],f,#FFFFFF,[wid_in]


The script is a variation of that one seen here:
Metro tiles from nanDECK's permutation engine

Note that, for 1799 tiles, you must switch to "on disk" deck file location in the "Config" option (at 300DPI the RAM isn't enough for that deck size, even if you have more than 4 GBytes in a 64bit O.S., nanDECK is a 32bit software, and then is limited to 4 GBytes).

This is the first tile (aabbccddeeff):



And this is the last (abcdefbadcfe):

Twitter Facebook
5 Comments
Subscribe sub options Tue Feb 17, 2015 7:34 pm
Post Rolls
  • [+] Dice rolls
Loading... | Locked Hide Show Unlock Lock Comment     View Previous {{limitCount(numprevitems_calculated,commentParams.showcount)}} 1 « Pg. {{commentParams.pageid}} » {{data.config.endpage}}
{{error.message}}
{{comment.error.message}}
    View More Comments {{limitCount(numnextitems_calculated,commentParams.showcount)}} / {{numnextitems_calculated}} 1 « Pg. {{commentParams.pageid}} » {{data.config.endpage}}
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.