Problem Description
Recently, you have been reading up on books about how dances can portray significant meaning.
Your friend has just procured 2 tickets to the hottest craze in town, the Guan dance
You would like to test your skills of dance reading on this one live example
You have also recorded the dance in an exe file to refresh your memory if you ever forget it
Note: The solution to this problem lies in the exe file, please do download it under the Attachments tab
For linux, download 'guandance'.
For windows, download 'guandance.exe'
Executable File
The exe file will show an image of the dance floor:
x x x x x
x x x x x
x x G x x
x x x x x
x x x x x
The show consists of multiple dances. In each dance, Guan represented by the G above will start somewhere in the arena. The dance number will be noted in the exe file and you will be informed of every new dance.
During each dance, Guan makes multiple moves, moving from his current position to another position one tile away up, down, left, right or diagonally
Press Space to move on to the next move and observe closely
You will be prompted as to whether you want to watch the encore. Enter y for yes and n for no
Subtasks
The dances have 2 messages. Each message will tell you which subtask it is
Subtask 1(1%): First Message
Subtask 2(2%): Second Message
Coco the Monkey has sneaked into the Guan dance. If you say something nice to him, he will reward you with lots of points!
Subtask 3(97%): Third Message
Input
No input, refer to above
Submittables
This is an output only question. You are to submit just the first message and second message in CAPS via two different files.
No cpp programs are required. Submit the first message as 'subtask1.txt' and the second message as 'subtask2.txt'.