Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please do it in Matlab, Matlab if you don’t know please don’t do it because this

ID: 3607246 • Letter: P

Question

Please do it in Matlab, Matlab if you don’t know please don’t do it because this is their time I am posting this and all the time I get spam or wrong answer thanks . JUST MATLAB PROGRAAM
Rules for game
USE MATLAB PLEASE Please Answer in MATLAB,MATLAB, NO OTHER LANGUAGE you to implement a playable game of Go in MATLAB with at least a 5x5 game board. The rules of Go are described here: https://senseis.xmp.net/?BasicRulesOfGo While we will not check for every possible outcome you could have in a game of Go, the game you makes should clearly implement the basic rules (piece placement, capture, and scoring). Other rules, like when the game is over, can be left out of your program. This project has the following deliverable levels C: A text-based implementation of Go. It should report all necessary information for the player(s) to understand the state of the game (i.e. the number of points people have, where pieces are, whose turn it is), and have a way for player(s) to take their turn B: Add a visual representation of the game state This should be an image or a visualization using symbols A: Implement your game in a GUI. The GUI should contain both your visual representation and an interface for any user input needed to play the game

Explanation / Answer

Snake And Ladder Game function draw_snake(snake,food) plot(snake(:,1),snake(:,2), 'ws',food(1,1),food(1,2), 'rs')%creates the vectors for the food and snake and plots them whitebg([0 0 0])%creates black background axis([0, 25, 0, 25])%creates the axis for gameplay end function checkpoint3() global p q r s t p =randi([10 20],1);%generates random p starting point for snake q =randi([10 20],1);%generates random q starting point for snake r =randi([1,4]);% generates random direction to start in for snake s =randi([1 24],1);%generates random p coordinate for food t =randi([1 24],1);%generates random q coordinate for food snake=[p q];%defines the snake for p and q coordinates food=[s t];%defines food for s and t coordinates figure('KeyPressFcn',@my_callback); function my_callback(splooge,event)%callback function for movement switch event.Character case 30%says if this arrow key is pressed r = 1;%assign this value to that arrow key case 31%says if this arrow key is pressed r = 2;%assign this value to that arrow key case 29 %says if this arrow key is pressed r = 3;%assign this value to that arrow key case 28 %says if this arrow key is pressed r = 4;%assign this value to that arrow key end end while (snake(1)>=0 && snake(2)>=0 && snake(1)