Skip to content

Step2 pr합니다. - #128

Merged
javajigi merged 4 commits into
code-squad:LYJrfrom
LYJr:step2
Nov 11, 2018
Merged

javajigi merged 4 commits into
code-squad:LYJrfrom
LYJr:step2

Conversation

@LYJr

@LYJr LYJr commented Nov 2, 2018

Copy link
Copy Markdown

충돌 수동으로 처리 후 pr합니다.

@javajigi javajigi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

구현하느라 수고했네요.
피드백 남겼어요.


private static void locationCriteria(int line, int pointX, int pointY, int coordinatesX) {
if (condition(pointX, coordinatesX) && condition(pointY, line)) {
input = POINT;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

input을 전역 변수로 두고 구현하기 보다 로컬 변수로 구현해본다.

public class Movement {

private static final int MAX_NUM = 24;
private ArrayList<Point> points = new ArrayList<>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

points 변수를 생성하지 않고 구현해 본다.
points 변수가 없으면 Movement의 모든 메소드를 클래스 메소드로 구현할 수 있다.
모든 메소드를 클래스 메소드로 구현해 본다.

private static final int MAX_NUM = 24;
private ArrayList<Point> points = new ArrayList<>();

public ArrayList<Integer> axis() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ArrayList로 반환하지 말고 List로 구현해 본다.

@javajigi
javajigi merged commit 7888e38 into code-squad:LYJr Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants