digital_electricity: generalised answer checking

Authored by rudranilbasu on Aug 18 2017, 6:29 PM.

Description

digital_electricity: generalised answer checking

The tutorial levels are divided into 5 categories:

  • lightTheBulb: The levels that require to light a bulb
  • equation1Variable: The levels whose answers depend on 1 switch only
  • equation2Variables: The levels whose answers depend on 2 switches
  • equation3Variables: The levels whose answers depend on 3 switches
  • others: Special case scenarios

While calculating the results in the js, we choose on which category out
of the five the current level fits in, and evaluate the answer
accordingly, removing the redundancy that existed previously.

Signed-off-by: Rudra Nil Basu <rudra.nil.basu.1996@gmail.com>

Details

Committed
rudranilbasuAug 18 2017, 6:29 PM
Parents
R2:559b539b82e7: digital_electricity: Free mode: Add component from dataset
Branches
Unknown
Tags
Unknown