大宮盆栽デイズ - Omiya Bonsai Days -

冗談めかす埼玉のファインマン

2018-02-12から1日間の記事一覧

パターンをネストする@コードを学ぼう1

//パターンをネストする@コードを学ぼう1 func turnAround() { turnLeft() turnLeft() } func solveStair() { moveForward() collectGem() turnAround() moveForward() } solveStair() solveStair() turnLeft() solveStair() solveStair() youtu.be

往復する@コードを学ぼう1

//往復する@コードを学ぼう1 func get2() { collectGem() moveForward() collectGem() moveForward() collectGem() } get2() turnRight() moveForward() turnRight() get2() turnLeft() moveForward() turnLeft() get2() youtu.be

集めて、切り替えて、繰り返す@コードを学ぼう1

//集めて、切り替えて、繰り返す@コードを学ぼう1 func get(){ moveForward() collectGem() moveForward() toggleSwitch() moveForward() moveForward() turnLeft() } get() get() get() get() youtu.be

新しい関数を作る@コードを学ぼう1

//新しい関数を作る@コードを学ぼう1 func turnRight(){ turnLeft() turnLeft() turnLeft() } moveForward() turnLeft() moveForward() turnRight() moveForward() turnRight() moveForward() turnRight() moveForward() turnLeft() moveForward() toggleSw…

新しい挙動を作る@コードを学ぼう1

//新しい挙動を作る@コードを学ぼう1 moveForward() moveForward() moveForward() turnLeft() turnLeft() turnLeft() moveForward() moveForward() moveForward() collectGem() youtu.be

最短の道順@コードを学ぼう1

//最短の道順@コードを学ぼう1 moveForward() moveForward() moveForward() collectGem() moveForward() moveForward() moveForward() moveForward() toggleSwitch() youtu.be

バグつぶしの練習@コードを学ぼう1

//バグつぶしの練習@コードを学ぼう1 moveForward() moveForward() moveForward() turnLeft() moveForward() moveForward() moveForward() collectGem() moveForward() turnLeft() moveForward() moveForward() turnLeft() turnLeft() turnLeft() moveForwa…

バグを見つけて直す@コードを学ぼう1

//バグを見つけて直す@コードを学ぼう1 moveForward() moveForward() turnLeft() moveForward() collectGem() moveForward() collectGem() moveForward() toggleSwitch() youtu.be

ワープの練習@コードを学ぼう1

//ワープの練習@コードを学ぼう1 moveForward() moveForward() turnLeft() moveForward() collectGem() moveForward() turnLeft() moveForward() moveForward() toggleSwitch() youtu.be