Consider inital board;
If we move the peg located on (4,6) to the left (4) direction. the next board will look like;
Write a function that will return the next board after applying the move. Assume all of the moves (second input of the function) are legal moves.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers9
Suggested Problems
-
Sum of diagonal of a square matrix
1645 Solvers
-
Test if two numbers have the same digits
267 Solvers
-
396 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
264 Solvers
-
393 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!