Skip to content

Fixed forking issue#399

Open
aryadath wants to merge 1 commit intomakersacademy:mainfrom
aryadath:main
Open

Fixed forking issue#399
aryadath wants to merge 1 commit intomakersacademy:mainfrom
aryadath:main

Conversation

@aryadath
Copy link

No description provided.

Copy link

@ManuelaIacobovici ManuelaIacobovici left a comment

Choose a reason for hiding this comment

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

Very well written code overall. Great job!

@@ -0,0 +1,34 @@
class Scoreboard
def initialize

Choose a reason for hiding this comment

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

Maybe we should initialise with a collection of rolls.

# can calculate the score
end

def roll(pins)

Choose a reason for hiding this comment

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

We are not calling this function anywhere in the code.

class Scoreboard
def initialize
@rolls = [] # array that will store down number of knocked pins after each roll
@current_roll = 0 #to keep track of the current roll. Initalising means it is ready to take information so it

Choose a reason for hiding this comment

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

This could be maybe a reference to the frame, once we detect that we should move to the next frame. It is not used in the code.

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