Skip to content

Code review exercise: Tay Duncan#118

Open
TashanDuncan wants to merge 31 commits intoMCR-Digital:masterfrom
TashanDuncan:master
Open

Code review exercise: Tay Duncan#118
TashanDuncan wants to merge 31 commits intoMCR-Digital:masterfrom
TashanDuncan:master

Conversation

@TashanDuncan
Copy link

No description provided.

mrmanc and others added 30 commits January 8, 2024 13:53
Introduce a missing intentional difference
This commit refactors the add() method in the Game class by separating the logic into two separate functions: initializePlayer() and logNewPlayer(). This improves code readability and maintainability.
@TashanDuncan TashanDuncan changed the title Refactor Game.js Code review exercise: Tay Duncan Jan 9, 2024
const MAX_PLAYERS = 6
const winningGoldCoins = 6
var players = []
var board = new Array(MAX_PLAYERS)

Choose a reason for hiding this comment

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

Could potentially extract Board into its own class?

@@ -0,0 +1,8 @@
export class Player {

Choose a reason for hiding this comment

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

Nice job creating Player class 👍

Co-authored-by: Shu <101587342+shugewang@users.noreply.github.com>
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.

3 participants