SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
Tesla Challenge 21: Love Calculator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
2.472 KB
8 Apr, 2017 @ 11:25am
1 Change Note ( view )

Subscribe to download
Tesla Challenge 21: Love Calculator

In 1 collection by 89o
SHENZHEN I/O Tesla Challenge Pack
24 items
Description
Subject: Three Kingdoms love scale
From: David 戴维 P. Solomon <daiwei@longteng-co-ltd.gd.cn>

Hey there! Remember our work for the Shenzhen 三国游乐园 (Three Kingdoms Land)? Now they want us to create another little machine for them. A love scale, the kind you see around amusement parks. For those of you who are not familiar, basically you type two names and the scale tells you how much they are in love. With all due respect, it's a bunch of crap, but a good algorithm and it will look very credible. I came up with a simple algorithm, now someone needs to implement it.

---------

Small hint: If you still don't know, you can route wires under components. Use TAB to do this. It will be very useful in this spec and the ones to come.

Big hint: Keep track of the lengths of the two names independently. Then compare them with a single
teq x0 x1 + add 10
(assuming x0 and x1 are connected to the microcontrollers that keep track of the lengths)


Optimization tip: Watch out for premature optimization!
2 Comments
Garrett33 3 Oct, 2024 @ 9:46am 
much harder than it looks at first . . .
Cocoa 22 May, 2023 @ 6:23pm 
Back wires is not necessary even in this puzzle. And, you just need to care about the difference between len(str0) and len(str1), i.e. the value of len(str0) - len(str1) , but NOT THE CERTAIN VALUES OF len(str0) AND len(str1) .

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2979481698