Search results

  1. S

    help with writing a test script in matlab?

    the function that i want to write a test script for is: ----------------------------- %This function moves the shark one square at a time toward a given goldfish %and terminates when the shark is vertically or horizontally adjacent to %the said goldfish. function...
  2. S

    Please help in writing a test script in matlab:?

    Please I need help: ---------------------------------------- function []=play(board,shark,oldShark) print(board,shark); [isGoldfish coords]=getClosestGoldfish(board,shark); if isGoldfish==true oldShark=shark; newShark=moveToGoldfish(board,coords,shark); [newBoard...
Back
Top