SHENZHEN I/O

SHENZHEN I/O

评价数不足
C2S-RF901 XBUS BUFFER
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
2.964 KB
2022 年 2 月 19 日 下午 10:06
2022 年 2 月 19 日 下午 10:50
2 项改动说明 ( 查看 )

订阅以下载
C2S-RF901 XBUS BUFFER

描述
Ever wonder how the non-blocking XBus buffer in the radio receiver worked? Maybe even wonder if someone hid a blocking antenna output behind the buffer to intentionally make your life more difficult? I've got bad news for you: yes, yes they did. The good news is that it's now your turn to be the jerk who hides those nice, conveniently blocking inputs behind a bunch of -999's.

In-game Description:
  • in is a blocking XBus input connected to a radio reciever.
  • out is an XBus output connected to a device that wishes to read values from the reciever, such as a microcontroller.
  • read is a blocking XBus input indicating the number of values the reader is attempting to read.
  • When a value is received on in, it should be stored in the buffer.
  • When a value is recieved on read, that many values in the buffer should be sent to out. If there are not enough values in the buffer, -999 should be sent for any excess requested values.

Next challenge:
C2S-RF902 Blocking XBus Buffer
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2759250235
3 条留言
zwippie 2023 年 9 月 29 日 下午 1:49 
Lovely :) Got it to 8 / 420 / 14 .
Pausbrak  [作者] 2022 年 4 月 1 日 上午 7:27 
Glad you enjoyed it! You did better than I did, at least. My solution was 11/517/17 . If there's a more elegant way to do it than yours, I certainly don't know of it!
s7eph4n 2022 年 3 月 28 日 上午 9:19 
That's a very creative idea and a nice back story which fits perfectly to the game. Thank you for creating that puzzle.
I've managed a 10/405/15 ... but somehow I've the feeling that it could be solved in a more elegant way.