digital_electricity: Moved level 6 to the end

Authored by rudranilbasu on Aug 21 2017, 11:00 AM.

Description

digital_electricity: Moved level 6 to the end

Level 6: Implementing XOR gate using basic gates is moved to the final
level and the numbering of all the levels coming after it (originally)
is decremented by 1.

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

Details

Committed
rudranilbasuAug 21 2017, 11:00 AM
Parents
R2:b8c8138708e9: digital_electricity: Implemented zooming of components
Branches
Unknown
Tags
Unknown
Restricted Application added a subscriber: jjazeix. ยท View Herald TranscriptAug 21 2017, 1:31 PM
jjazeix added inline comments.Aug 21 2017, 1:38 PM
/src/activities/digital_electricity/digital_electricity.js
220

is there a way to have these operationResult directly in the dataset so we don't depend here of the level numbers?

rudranilbasu added inline comments.Aug 21 2017, 3:25 PM
/src/activities/digital_electricity/digital_electricity.js
220

Yes, I am thinking of providing the equations as string from the dataset, and convert
it into postfix notation using a stack and evaluate the resultant postfix will be evaluated
in the js.

I will start taking a deeper look at it once I complete the navigation in the playArea.

Wouldn't it be easier to "just" call a function in the dataset that would
return the result depending on the currentLevel value?

Yes, that will be simpler. I was thinking of creating a generalised function for calculating
the output for any given equations in string format. But I guess it is indeed too complicated
for this problem, thank you.