Skip to content

Conversation

@laminne
Copy link
Member

@laminne laminne commented Jul 10, 2020

micro:bit(ブロック版)です。シリアル通信を使用せず本体についているLEDを利用しました。
そのため日本語が出力できず出力内容は"then then then se"になっています
JS版のコードをここに貼っておきます

function RADWIMPS (then: string, then2: string, then3: string, se: string) {
    result = "" + then + then2 + then3 + se
}
let result = ""
let se = ""
let then3 = ""
let then2 = ""
let then = ""
then = "then"
then2 = "then"
then3 = "then"
se = "se"
RADWIMPS(then, then2, then3, se)
basic.showString(result)

@mirror-kt
Copy link
Contributor

これはメソッドチェーンか…?うーん

@laminne
Copy link
Member Author

laminne commented Jul 11, 2020

ブロックをつなげて作成するのでJSのコードはメソッドチェーンみたいにならないんです...
ブロックでどういう感じになるのか画像を張るべきでしたね

@mirror-kt
Copy link
Contributor

@laminne ところでこれブロック版の画像ってあったりしますか

@laminne
Copy link
Member Author

laminne commented Oct 10, 2020

ないですね
明日作って貼っておきますね

@eggplants
Copy link
Contributor

eggplants commented Jun 24, 2021

Makecode上にそのままコピペしてブロックにしたものです。
動作している様子も見れます。
https://makecode.microbit.org/_9y95sTLW2TRU
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants