Skip to content

Fix formula to generate next number#3

Open
lulunac27a wants to merge 1 commit into
5j54d93:mainfrom
lulunac27a:patch-1
Open

Fix formula to generate next number#3
lulunac27a wants to merge 1 commit into
5j54d93:mainfrom
lulunac27a:patch-1

Conversation

@lulunac27a

Copy link
Copy Markdown

No description provided.

@5j54d93

5j54d93 commented Apr 14, 2025

Copy link
Copy Markdown
Owner

The new random method is more reasonable. However, it seems that the maxNumber variable needs to be reset to 1 when game ends.

if isEnd {
    maxNumber = 1
    if score > bestScore {
        bestScore = score
    }
    self.isEnd = isEnd
}

@lulunac27a

Copy link
Copy Markdown
Author

I agree with that idea.

@lulunac27a

Copy link
Copy Markdown
Author

Still waiting for changes

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