Talk:Langton's ant

From Rosetta Code
Revision as of 01:34, 10 March 2012 by rosettacode>TimToady (→‎Chirality?: many ways to screw this up...)

draft task

please review the task and remove the draft category if appropriate --AlexLehm 14:11, 30 October 2011 (UTC)

I made a few changes based on what I think you were saying. If you do not like them, please add your own clarifications? --Rdm 10:50, 2 November 2011 (UTC)

Middle?

It's a 100x100 field, there is no middle cell. I suggest odd-numbered sides (99x99 or 101x101) to remove this ambiguity.

CRGreathouse 01:56, 21 November 2011 (UTC)

It says "near the center". Just pick something close by. It doesn't matter too much since the area is much larger than what it takes to get to the repetitive part. --Mwn3d 01:59, 21 November 2011 (UTC)

Chirality?

Perhaps this is just a nit, but a large minority of the solutions appear to be turning right on black and left on white, resulting in a mirror image of the specced result. You can tell by looking at which direction the "pinwheel" goes... --TimToady 22:51, 9 March 2012 (UTC)

The task never specifies the initial color of the field. Can one produce a mirror image by swapping the initial color. --Kernigh 01:20, 10 March 2012 (UTC)
Er, yes it does: white is specified for the initial ground color in the first sentence. Upon reflection (no pun intended, except maybe retroactively), there are several other ways that the image can come out mirrored. In the case of Ada, we see that the color is tested after inversion rather than before inversion, so the ant turns the wrong way. In other cases, it appears that the x/y coordinates are assumed to be on a standard mathematical graph, but then then one of the axes is flipped upon output by traversing one of the dimensions in the opposite order. (The Perl 6 solution assumes the whole graph is printed on its side, but that's merely a rotation around the origin, not a mirror flip.) It's also possible some of the examples are merely screwing up what is true and false. --TimToady 01:34, 10 March 2012 (UTC)