Skip to content

Conversation

@twentyNineAs
Copy link
Owner

Added both the kernel and enhanced interface in src/components/logicgates

Added both the kernel and enhanced interface in src/components/logicgates
Copy link

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

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

Looking good!

* the first input value
* @param second
* the second input value
* @requires operation to be equal to one of the following operators: {AND;
Copy link

Choose a reason for hiding this comment

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

You can use an enum for this.

* @ensures height = ht(this)
*/
int height();
}
Copy link

Choose a reason for hiding this comment

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

I like this, but it would be nice to able to also replace the inputs. Gates are nicer when they're reusable/modular.

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