I am just playing at some coding towards a tool I want to try and develop, and I am looking to collect potential planet formats that appear in game such as;
Standard Format: xxx,yyy:zzz
Alt News Format: planet zzz in the xxx,yyy system
(all sizes considered i.e. x,y:z ; xx,yy:zz)
I just joined up to collect some data but I don’t have much access yet, if anyone has any others they can think of, please could you leave them in here.
Happy New Year everyone, i’m hanging up my boots for the rest of the night.
@TIF I had found another one, but it would hardly ever show up…
# re for format 'x,y:z'
coords = re.compile(r'(\d+),(\d+):(\d+)')
# Creates coord list in format [(x1,y1,z1),(x2,y2,z2)]
# re for format 'z in the x,y system.'
coordsalt = re.compile(r'planet (\d+) in the (\d+),(\d+) system.')
# re for format 'planet z at x:x, y:y'
coordsalt2 = re.compile(r'planet (\d+) at x:(\d+), y:(\d+)')
# re for format 'Planet #z of The ABC System (x,y)'
coordsalt3 = re.compile(r'Planet #(\d+) of .* System \((\d+),(\d+)\)')
# Creates coord list in format [(z1,x1,y1),(z2,x2,y2)]