/**
 * CS1101 Lab 05 Ex 1: MineSweeperGame.java
 *
 * <fill in your discussion group here>
 *
 * This class allows the user to play MineSweeper.
 **/

import java.util.*;

public class MineSweeperGame
{
    public static void main (String[] args)
    {
        Scanner stdIn = new Scanner(System.in);

        //Read in the width and height of the grid
        int width = stdIn.nextInt();
        int height = stdIn.nextInt();

        //Clear the input buffer
        stdIn.nextLine();

        //Read in the state of the grid
        String lines = "";
        for (int i = 0; i < height; i++)
        {
            String line = stdIn.nextLine();
            lines += line + "\n";
        }

        /*
         *  Construct your mine sweeper here
         */

        do
        {
            String command = stdIn.next();
            if (command.equalsIgnoreCase("r"))
            {
                int x = stdIn.nextInt() - 1;
                int y = stdIn.nextInt() - 1;

                /*
                 *  Write your code for the right-click action here
                 */
            }
            else if (command.equalsIgnoreCase("l"))
            {
                int x = stdIn.nextInt() - 1;
                int y = stdIn.nextInt() - 1;

                /*
                 *  Write your code for the left-click action here
                 */
            }
            else if (command.equalsIgnoreCase("q"))
            {
                /*
                 *  Write your code for quitting
                 */
            }

        } while (true);

        /*
         *  Write your code to print the correct messages
         */
        //System.out.println("LOST");
        //System.out.println("WON");
        //System.out.println("IN PROGRESS");
    }
}

