Skip to content

Conversation

truggeri
Copy link
Owner

@truggeri truggeri commented Jan 4, 2025

Summary

Simple implementation that splits things into wires (map of string to number) and gates (map of string to gate struct). We then iterate over every gate and continually evaluate those where both input wires have a value (are a wire, not a gate). Once done, we iterate over all the wires and OR the result with the wire value shifted by its position.

@truggeri truggeri self-assigned this Jan 4, 2025
@truggeri truggeri merged commit 039c0d2 into main Jan 4, 2025
1 check passed
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.

1 participant