Generation

generate functionWed, 14 Dec 2022

randomly place battleship ships on a 8 by 8 grid using a list<t>

//Ship.cs public class Ship { public List<Tuple<int, int>> points = new List<Tuple<int, int>>(); } //BattleShip.cs public class BattleShip { private List<Ship> ships = new List<Ship> (); public void PlaceShips() { //... } }

Want to kickstart your project?Use the new AI Studio to create your code