Question
All i need is a game that allows a user to input a row and column and have it handle any input possible and to
All i need is a game that allows a user to input a row and column and have it handle any input possible and to just print out the adjacent edges and corners and he not adjacent. Nothing more. I dont want a game that gives me hints. Just simply 3 methods for adjacent corners, edges and the not adjacent at all and have it parse so any imput is allow such as: (5, 5), 3 0, 4,1, a7, b 2
(every time i asked this question they answered a completely different thing and nothing i needed was in the code. Please help me make a simpple code with just what is asked (which is the adjacency data) nothing more
Battle Ship Game
Write a Java program from scratch.
Simple geometrical reasoning is at the core of Battleships. One important notion is adjacency, with two sub-types: edge adjacency and corner adjacency. For example, the square (4,3) is edge-adjacent to the square (3,3), it is corner-adjacent to the square (3,2), and it is not adjacent to the square (6,7).
Write a program that reads a square from the user, and prints out three lists(each with a seperate method):
1) a list of all edge-adjacent squares,
2) a list of all corner-adjacent squares, and
3) a list of all squares which are not adjacent at all.
Our version of battleships is played on a 9 by 9 board. The lower-left square is (0,0). As noted, the program will read from the console a shot specification. You can decide which formats to handle. They may include, for example, specifications like
(5, 5)
3 0
4,1
a7
b 2
An A-level program will handle all the input formats illustrated, output correct answers, be clearly written, and be well designed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started