File hunt.php
This application build by a simple-line program in php cli. Open your favorite Terminal and run these commands.
php hunt.php
And program will be run like this
Board Grid
########
#......#
#.###..#
#....#.#
#X#....#
########
Random Treasure Location 3, 2
########
#......#
#.###..#
#.$..#.#
#X#....#
########
Input Your Move
Up/North (0-3) step:_
Then You must input your move to found the treasure
Input Your Move
Up/North (0-3) step:1
Right/East (0-5) step:1
Down/South (0-5) step:0
Wohooo!!! Congratulations, You found the treasure...
I would love to invite with you and discuss the position in detail.