Langton's ant implementation written in PHP and running in CLI:
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⢀⢴⠙⣄⡓⢦⠝⠁
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠤⡀⢀⢐⡦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⣓⢚⡉⣾⠐⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣛⣆⢗⣽⢺⣐⡦⠀⢐⣦⡤⢐⡦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⢳⣇⡲⢁⡔⡊⡵⣪⣕⣀⣀⢀⠇⠐⡍⢢⠀⠀⠀⠀⠀⠀⠀⠀⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡘⠱⣌⣧⣼⣠⣏⠊⢌⡸⣥⣝⡐⢆⢡⣓⡡⠏⡒⠿⢢⠀⠀⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡜⣀⣵⠊⣨⢵⠸⡦⠑⣐⡅⣅⡼⣳⢻⡝⠵⣿⢾⠠⣀⠜⢀⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡜⠁⡈⠢⢀⢹⢤⠗⢾⡭⠋⠛⢛⡲⡟⡒⣏⡽⡊⢤⢆⢴⠙⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢒⠌⢃⣙⡝⣢⠿⡫⠌⢍⠹⣄⡿⠦⣫⢸⡈⠅⣗⠐⣄⡓⢦⠝⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠺⢅⡌⣑⡹⣧⣄⡡⠲⡀⣫⢀⡳⣼⢫⢌⢅⡁⡅⣆⡙⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⣦⠃⣻⢧⠁⡋⡹⠻⣪⢵⣙⡴⣻⠛⣬⡰⢬⢡⠙⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⡅⣈⠡⠛⠆⠀⠈⠀⣀⠎⢢⣺⠀⠓⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⠈⠒⠒⠒⠒⠒⠛⠉⠒⠁⠀⠀⠀⠀⠀⠀
⠀
- PHP >= 7.0.0
- Composer
Clone from GitHub:
git clone git@github.com:itcraftsmanpl/php-langston-ant.git
cd php-langstons-ant
composer install --no-dev
Run simple command in CLI:
php bin/console
These publications have helped me in creating PHP-Langstons-Ant:
PHP-Langstons-Ant is released under the MIT Licence. See the bundled LICENSE file for details.
Arkadiusz Kondas (@ArkadiuszKondas)