A solution for a job interview test. download the lib and run the example like this: ruby chess_move_example.rb "Rook" "1"