Hi guys,
I'm trying to write a program in
java, that displays a grid of squares, and then prompts 2 players to input co-ordinates at the command line, turn by turn. The idea is that eventually, they will be moving numbers from one square on the grid to another, specifying the direction.
I've managed to create (with help) a grid of co-ordinates. Is it possible to have the command line running at the same time as the GUI grid? So for example, I can type (0,2) NW at the command line, and when I hit ENTER, the number at (0,2) will move North West?
I understand how to use BufferedReaders and how to take input to the program on the fly, but so far, my program asks for input, THEN displays the grid, and won't do both simultaneously. Is this possible?
Thanks loads for your help guys, I really appreciate it!
Mike