Question: In this task you will develop a program to test whether a proposed move in a game of Graze is valid / playable . Your
In this task you will develop a program to test whether a proposed move in a game of Graze is validplayable Your program will take as an input argument a string of characters that represent the current state of each square of the board same format as Task the number of the player making the move, and the proposed board coordinate at which this player wishes to place their token. Your program will determine and print to the screen whether or not the proposed move is playable, according to the rules of the game.
Implementation details
Program Input
Details of the coordinate system for the board and input string representing the current board state prior to the proposed move are the same as in Task Your program should take a total of three input arguments in the following form:
detectvalidmove
where is the same format as Task is either a or representing which player is making the move, and is the grid coordinate of the square that the player wishes to play eg cd etc.
Your program should determine whether or not the proposed square is playable, according to the rules of Graze. If the move is determined to be playable, your program should print to the screen:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
