1. Click the green flag to start/reset. 2. Press t to toggle between eraser and spawner. 3. Click or hold with the square cells to place them. 4. Press space to swap to the ant. 5. Press the arrow keys while the ant is out to point it in that arrows direction. 6.Place the ant anywhere to start. 7.Press space again to pause it. 8. While its paused you can place more cells and then place the ant to start it again. 9.Drag the slider to slow it down. 10. Press 'o' to show the variables, and 'p' to hide them
Rules: If the ant is on a black cell, change that cell to white, turn 90 degrees clockwise, and move one cell. If the ant is on a white cell, change that cell to black, turn 90 degrees counter-clockwise and move one cell. Took the idea from the actual thing called Langtons ant. And just decided to try and make it, took about 45 minutes. Keep in mind the game will slow down and sometimes not perform correctly if too many cells are on the screen due to lag. (added some optimizations so it should handled larger amounts of cells much better now) Known issues: When the ant touches the wall it just hugs the wall while moving in a straight line. (Authors note: there is a clone limit of about 300 so this project will only work if there is less than 300 cells on screen, ill try to find a way around this eventually)