chamcham Wrote:I thought about wrap around and it actually makes the problem easier.That algorithm won't ever generate configurations like this one:
Point A= random point in the square
Point B = take point A, move 2 points in the x-direction and choose any y-coordinate
Point C = take point A, move 2 points in the y-direction and choose any x-coordinate
It's a right triangle and none of the points will ever be adjacent to one another.
● ○ ○ ●
○ ○ ○ ○
○ ○ ○ ○
● ○ ○ ○
which I assume are supposed to be OK...


WPF is a madness when you first try to learn it (I know, I'm a pro c#/wpf developer)![[Image: screenshot20110126at221.png]](http://img841.imageshack.us/img841/480/screenshot20110126at221.png)
There's a typo in your code (line 54):