Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Condense this.rules function #107

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

Conversation

jakefrancis
Copy link

The this.rules function was condensed in an identical manner suggested by the java implementation comment above the this.rules function.

The previous implementation assigned the binary values backwards, i.e. 7 == index0, 6 === index1, etc.

This condensed version assigns them in order.

I wasn't sure if this was intentional, it appears the ruleset is randomized so from my understanding this won't make a difference.

The this.rules function was condensed in a similar manner suggested by the java implementation comment above the this.rules function.

The previous implementation assigned the binary values backwards, i.e. 7 == index0, 6 === index1, etc.

This condensed version assigns them in order. 

I wasn't sure if this was intentional, it appears the ruleset is randomized so from my understanding this won't make a difference.
@shiffman shiffman self-assigned this Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants