ahmed-alllam / AlphaLogos

Boolean Function Analyzer and Synthesis Optimization Tool
http://alpha-logos-1464863388.eu-west-3.elb.amazonaws.com/
MIT License
1 stars 0 forks source link

Added K-Map drawing feature #24

Closed ahmed-alllam closed 1 year ago

ahmed-alllam commented 1 year ago

This PR introduces the K-Map drawing feature, enhancing the usability and visualization aspects of the application. Users can now directly observe the Karnaugh Map corresponding to their Boolean expressions, offering a graphical representation that aids in understanding and simplifying logical expressions effectively. This PR resolves #23

Changes Included:

  1. Implemented a makeKMap function to generate K-Maps from given minterms and prime implicants.
  2. Added support for visualizing K-Maps with up to 4 variables.
  3. Included Gray code ordering to ensure accurate representation of minterms.

Testing:

Comprehensive unit tests have been added to validate the accuracy and reliability of the K-Map drawing feature, ensuring that it delivers correct and consistent results across various scenarios and edge cases.