Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beat That: Base + Score + Leaderboard_unfinished #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kenlyk
Copy link

@kenlyk kenlyk commented Aug 6, 2021

Please fill out the survey before submitting the pull request. Thanks!

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀

How many hours did you spend on this assignment?
2 hours (excluding online research)

Please fill in one error and/or error message you received while working on this assignment.
Missing syntax errors and getting confuse on how to place the if statement within If statement.

What part of the assignment did you spend the most time on?
I think trying to put them in a way where it works step by step, by assigning it into different modes. And syntax errors.

Comfort Level (1-5):
2.5

Completeness Level (1-5):
2.5~3/5

What did you think of this deliverable?

  • Learnt that processes can be implemented step by step where one function equals to one step. Each step represent a workflow.

Is there anything in this code that you feel pleased about?
I like that I know how to use global variable properly now

"<br></br> The current leaderboard is as follows <br></br> " +
dashboardDisplay();
}
return display;
Copy link

Choose a reason for hiding this comment

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

'display' is not defined.

} else if (gameMode == pending_result) {
console.log("game mode", gameMode);
// if pass player settings display the win logic
display =
Copy link

Choose a reason for hiding this comment

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

'display' is not defined.

console.log("game mode", gameMode);
// if pass dicerollresult then run the player settings
display = playerSettings(input);
} else if (gameMode == pending_result) {
Copy link

Choose a reason for hiding this comment

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

Identifier 'pending_result' is not in camel case.

} else if (gameMode == dice_rolled) {
console.log("game mode", gameMode);
// if pass dicerollresult then run the player settings
display = playerSettings(input);
Copy link

Choose a reason for hiding this comment

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

'display' is not defined.

console.log("game mode", gameMode);
// when the setting is now waiting for players, click submit then roll dice result
display = diceRollResult();
} else if (gameMode == dice_rolled) {
Copy link

Choose a reason for hiding this comment

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

Identifier 'dice_rolled' is not in camel case.

@codeclimate
Copy link

codeclimate bot commented Aug 6, 2021

Code Climate has analyzed commit ebedbad and detected 44 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 6
Duplication 4
Clarity 23
Bug Risk 11

Note: there are 38 critical issues.

View more on Code Climate.

Copy link

@michelle-mok michelle-mok left a comment

Choose a reason for hiding this comment

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

code is tidy and easy to read.
awesome use of functions to minimise repetition and simplify code
super work!!
remember that variable names in javascript are to be in camel case though

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