@Christopher2EZ4RTZ I doubt anyone has such a name. Although Ea and My and Bo and Ib are fairly common first names in Denmark. Someone with an Asian background could have the full name Bo Li.
string = "The fox is spaced"
locations = []
tracker = 0
stringSections=[]
tracker1=-1
end=[]
for char in string:
tracker+=1
if(char == " "):
locations.append(tracker)
for int in locations:
tracker1+=1
for a in range(0,int):
stringSections[tracker1].append(string[a+locations[int]-1])
a=len(stringSections)
while a>0:
end=stringSections[a]
print(end)
Traceback (most recent call last):
File "C:\Users\chris\Documents\Visual Studio 2015\Projects\PythonApplication2\PythonApplication2\PythonApplication2.py", line 14, in <module>
stringSections[tracker1].append(string[a+locations[int]-1])
IndexError: list index out of range
string = "The fox is spaced"
locations = [0] + [i for i in range(len(string)) if string[i] == " "] + [len(string)]
sections = [string[i + bool(i):j] for i, j in zip(locations[:-1], locations[1:])]
for i in range(len(sections) - 1, -1, -1):
print sections[i]
string = "The fox is spaced"
def range(i):
counter = 0
while counter != i:
yield counter
counter += 1
locations = [0] + [i for i in range(len(string)) if string[i] == " "] + [len(string)]
sections = [string[i + bool(i):j] for i, j in zip(locations[:-1], locations[1:])]
i = len(sections) - 1
while i != -1:
print sections[i]
i -= 1
@ATaco I like bf.doleczek.pl. It supports interactive IO, constant print generation, memory viewer (although only at the end of execution), and a bunch of examples. It's not very well known.
I'm toying with Perlin Noise after some work with Diamond Square. I followed the implementation by Hugo Elias that basically, makes a series of functions with x,y as input to throw each coordinate value.
My PHP code is here:
I have two questions:
How do I use the algorithm to generate a height...