Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

make truth tables with coffeescript.

i had a homework assignment that made us generate truth tables, and there's no way i was doing all that by hand when i had a Computer Machine! so i made this. maybe it'll be useful to you!

test.coffee should do a good job explaining how this works. here's the output of that:

┌───┬───┬─────────┬────────────┬────────────────────────┐
│ P │ Q │ (!P)||Q │ !((!Q)||P) │ ((!P)||Q)===!((!Q)||P) │
├───┼───┼─────────┼────────────┼────────────────────────┤
│ F │ F │ T       │ F          │ F                      │
├───┼───┼─────────┼────────────┼────────────────────────┤
│ F │ T │ T       │ T          │ T                      │
├───┼───┼─────────┼────────────┼────────────────────────┤
│ T │ F │ F       │ F          │ T                      │
├───┼───┼─────────┼────────────┼────────────────────────┤
│ T │ T │ T       │ F          │ F                      │
└───┴───┴─────────┴────────────┴────────────────────────┘

About

generate truth tables from the command line. made for a class

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.