SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
Tesla Challenge 5: Superhero Agility Suit
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
3.968 KB
8 Apr, 2017 @ 11:19am
1 Change Note ( view )

Subscribe to download
Tesla Challenge 5: Superhero Agility Suit

In 1 collection by 89o
SHENZHEN I/O Tesla Challenge Pack
24 items
Description
Subject: Superhero suits
From: Wu Lili 吴丽丽 <wulili@longteng-co-ltd.gd.cn>

We have received another assignment from Sun Haotian. This time, he wants us to create superhero-esque suits for people to run faster and jump (much) higher. They have motion sensors that should allow us to automatically detect when the user is running or jumping. This is an important assignment - Mr. Sun will be wanting thousands of them.

Subject: Re: Superhero suits
From: David 戴维 P. Solomon <daiwei@longteng-co-ltd.gd.cn>

I just heard Cool Dad pre-ordered one of these. They're going to be AWESOME!

---------

Small hint: Every jump lasts exactly 7 time units.

Big hint: The gen command can be very useful in both the jump and heel functions.

Optimization tip: For the rocket jump, use the command:
gen P X 0
(given that P is connected to the rocket output and X is connected to the dial)
2 Comments
pv2b 3 Mar, 2018 @ 2:47am 
After solving this, I find the spec is missing the following to be complete:

While the user is airborne, keep booster=50. A user landing is determined by 7 time units having passed (or possibly when motion=0)

Do not heel when motion=0.

With these modifications I was able to create a solution that passes the tests.
pv2b 3 Mar, 2018 @ 2:23am 
Nice puzzle, but the spec has some puzzles.

The test does not match the spec. At t=8, motion=63 and distance=10.

According to the spec, if motion>50 and distance <= 10, that means the user is running, thus set booster=100. However, in the test, in this case, booster=50.

Further, at t=9, motion=0 and distance=0.

According to the spec, if motion[t] < motion[t-1] (falling edge), and distance <= 10, then set booster=0. However, in the test, booster=50.

The "small hint" in the description on the workshop should be in the spec, otherwise it's not possible to completely implement the spec.

Further, the spec has references to radar-out and radar-in. They are not on the board. :-)

Here is an implementation of the spec as written: However it is not pass the tests. https://i.imgur.com/k5OhggX.jpg

I'm pretty sure though, that with the "small hint" I can make a different implementation that does pass the tests. :-)