Git Product home page Git Product logo

truth-tables's People

Contributors

eysalee avatar thomas-kim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

truth-tables's Issues

Parens issue with grammar

Column Highlighting with ->

LHS -> RHS has issues highlighting the RHS column when RHS is a single variable
Issue doesn't occur if the right side is more than one variable.

Example:
Works: http://www.cs.utexas.edu/~bastionf/#/false/a->(b&c)
Works: http://www.cs.utexas.edu/~bastionf/#/false/a->b&c
Doesn't work: http://www.cs.utexas.edu/~bastionf/#/false/a->b
Doesn't work: http://www.cs.utexas.edu/~bastionf/#/false/(a&c)->b

**EDIT: Same issue occurs with <- as well
Works: http://www.cs.utexas.edu/~bastionf/#/false/a<-b&c
Doesn't work: http://www.cs.utexas.edu/~bastionf/#/false/(a&c)<-b

Add CFG to Column Highlighting

We talked about this. You know what to do. Fix up the column highlighting by making a context free grammar. It should be robust and solve most of our current issues.

Table page for invalid expressions

Need an error landing page for when the expression is invalid. This case can occur when a user inputs an invalid expression directly in the url.

Operator Mistake Count

The app should count the number of errors you get for each operator. Along with this functionality, we should include counting intermediate steps (when skipped) as mistakes and adding to their operator count. Maybe we could even do something fun with chart js ( http://www.chartjs.org/ ) to display the mistake count

column highlighting for things that have (a|b) three times

Surprise! (a|b)&(a|b)&(a|b), (a|b)|(a|b)&(a|b), and (a|b)&(a|b)|(a|b) all have issues with column highlighting. a|b is not duplicated in the columns (good!), but it is the only thing highlighted when solving the rest of the subexpressions (and the whole expression).

Ex:
(a|b)&(a|b)&(a|b) has you solve a|b and (a|b)&(a|b), but when solving the entire thing, it only highlights a|b.

Collapsing columns

On table-basic, a nice feature to add would be to collapse columns you're either not dealing with or don't need for the subexpression you're currently on. I'm able to make an expression so long that when solving a later subexpression, two columns being highlighted are spread so far apart that they can't be viewed together (meaning you have to scroll).

Note, you cannot completely hide the columns. This would cause issues for the user if they want to work on another subexpression.

Problem with XOR

XOR ("X") doesn't work if a variable is touching it on the right
Also, XOR doesn't column highlight for single variables (even for "working" links)
(Works on table-basic)

Example: (a)X(b) works, but aXb doesn't
(Note: Links don't work. Copy into browser)
Works (column highlighting works, too): http://www.cs.utexas.edu/~bastionf/#/false/(a&b)X(b)
Works: http://www.cs.utexas.edu/~bastionf/#/false/(a)X(b)
Works: http://www.cs.utexas.edu/~bastionf/#/false/aX(b)
Doesn't work: http://www.cs.utexas.edu/~bastionf/#/false/aXb
Doesn't work: http://www.cs.utexas.edu/~bastionf/#/false/(a)Xb

Issue with nested parens with operators

Repeated subexpressions

Equations such as "(a|b)&(a|b)&(a|b)" don't remove repeated parts when you have to solve it. This example has you solve "a|b" in three different columns.

Need a readme!

This repo needs a readme that explains what it is and hosts our legal stuff.

Suggested Additional Features (Post-Production)

-Help button (reveal answers to selected boxes)
-Fancier front page (will all the necessary information to know what it is)
-Explicitly state everything's public domain (etc etc lawyers) on the front page
-Rendering special symbols
-A legend on the front page (this symbol = blank, this symbol = blank, etc etc)

-Mark intermediate steps incorrect!!! If I skip columns that are used and I get an answer wrong, mark that answer and the intermediate steps incorrect! (Bastion, you should know what I mean)

Double counting mistakes

If I accidentally put in the wrong answer twice (such as "TT" when the answer was supposed to be "F") and backspace to clear, the mistake is counted twice. First time is when a single "T" is read, and a second time when I erase the second "T" from the box.

Results Page

The current results page lists how many errors you made, but does not show where you made them. Would it be possible to show the table (with the input answers) and mark the mistakes? (Similar to practice mode)

Also, it currently says "Mistakes made X out of X answered". Would it be possible to change to "Mistakes made: X out of X" (since the "answered" part is already included in the line below)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.