Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Maria_Voronko#37

Open
MariWrnk wants to merge 57 commits intomasterfrom
feature/MariaVoronko
Open

Maria_Voronko#37
MariWrnk wants to merge 57 commits intomasterfrom
feature/MariaVoronko

Conversation

@MariWrnk
Copy link
Collaborator

No description provided.

@MariWrnk MariWrnk added the readyForReview Sign for Artem to take a look label Jul 10, 2021
@NikolaevArtem NikolaevArtem added HW_1 Good to go style Style fix needed and removed readyForReview Sign for Artem to take a look labels Jul 11, 2021
@NikolaevArtem NikolaevArtem changed the title feature/Maria Voronko Homework 1 Maria_Voronko Jul 11, 2021
@MariWrnk MariWrnk removed the style Style fix needed label Jul 12, 2021
@MariWrnk MariWrnk added the readyForReview Sign for Artem to take a look label Jul 15, 2021
@NikolaevArtem NikolaevArtem removed the readyForReview Sign for Artem to take a look label Jul 20, 2021
@NikolaevArtem NikolaevArtem removed the readyForReview Sign for Artem to take a look label Sep 20, 2021
public class Main {

public static void main(String[] args) {
new GameService().run();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't understand what happened. It seems the interface needs refactoring. Also, it would be better if you add visual field representation

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's much repetitive code, and it makes reading code harder

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here a bug again...
image

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the interface was refactored, although I couldn't continue to play

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, I didn't find any bugs! As optional improvement, marking cells around a sunk ship as hit is a good idea. Approved!


import static java.lang.annotation.ElementType.FIELD;

//аннотация отмечает поля класса как важные
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good examle + using comparator!

Comment on lines +14 to +19
MapProblemsCollisionGenerator mpcg1 = new MapProblemsCollisionGenerator("Generator 1");
MapProblemsCollisionGenerator mpcg2 = new MapProblemsCollisionGenerator("Generator 2");
Map<MapProblemsCollisionGenerator, Integer> collisionMap = new HashMap<>();
collisionMap.put(mpcg1, 1);
collisionMap.put(mpcg2, 2);
System.out.println(collisionMap.toString());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: how do you know there's collision? You could as example add sout to equals, so you'll know that collision appeared

assertEquals("changed", singleton1.getState());
assertEquals("changed", singleton2.getState());

assertEquals(singleton2, singleton1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt: they could be equal, but not the same objects, right?

Copy link
Owner

@NikolaevArtem NikolaevArtem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! I think the course project needs some refactoring, and there are small changes in HW_3. Ping me when it's done

@NikolaevArtem NikolaevArtem added the bug Code fix needed label Sep 20, 2021
@MariWrnk MariWrnk added the readyForReview Sign for Artem to take a look label Sep 21, 2021
@NikolaevArtem NikolaevArtem added HW_3 and removed readyForReview Sign for Artem to take a look labels Sep 23, 2021
@NikolaevArtem NikolaevArtem added Course Project and removed bug Code fix needed labels Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants