Skip to content

Sometimes next piece can't be seen #2

@thinksomuch

Description

@thinksomuch

Hello,

Amazing bash scripting!
It has a bug that next piece can't be seen oftentimes.

Maybe it's related with get_random_next() function.

  • Original source code
((next_piece_color = RANDOM % ${#colors[@]}
  • Suggestion
((next_piece_color = ${colors[RANDOM % ${#colors[@]}]}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions