You will be designing your Battleship project by interfacing your Arduino with MATLAB to interface input from control modules with some form of user display (whether graphical user interface, external displays, Serial Monitor, etc.). At the minimum, your project needs to consist of the following:
Joystick module or Membrane switch module
A graphical user interface (GUI) for the Player to keep track of their and the computer player’s (CPU) grid. Make the grid 4x4 at minimum. The Player should be able to keep track of the status of both theirs and the CPU’s grid (what positions have already been targeted, whether it was a hit or miss, etc.).
A method for the Player to place their ship and for the CPU to randomly place their ship. A few things that should be taken into account:
The Player and CPU should have the same type and number of ships (we are only requiring you to have 1 ship per player at minimum). Ships can only be placed horizontally and vertically (not diagonally). Ships cannot exceed the bounds of the grid (limited play space) o Ships cannot overlap on the same grid point.
A logical firing algorithm for the CPU. Consider how you would play the game. You would start firing somewhat randomly. However, once you got a hit, you would start searching the local area, focusing on sinking the boat you have found before returning to search the rest of the grid. The CPU should play similarly to you.
Bu iş için 5 freelancer ortalamada $191 teklif veriyor
hi, we have developed more projects in MATLAB. expert in MATLAB simulation, serial port analysis. if you need any details , kindly contact through chat, thank you.