# Snake.Coding.Game

**URL:** <https://forum.makecode.com/t/snake-coding-game/814>\
**Category:** micro:bit\
**Created:** [November 25, 2019, 5:42am UTC](https://forum.makecode.com/t/snake-coding-game/814 "2019-11-25T05:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixtsu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/felixtsu/32/12024_2.png) [@felixtsu](https://forum.makecode.com/u/felixtsu)\
**Post date:** [November 25, 2019, 5:42am UTC](https://forum.makecode.com/t/snake-coding-game/814/1 "2019-11-25T05:42:32Z")

</div>

> **[SnakeCodingGame](https://makecode.microbit.org/77243-73809-50485-05291)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

A coding playground we created for students. They have to decide the snake’s next move by coding using the blocks under snake extension. The demo show a random-turn style snake, while some of my friends made very long implementation with arrays to finish the game in a full screen snake.

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [November 26, 2019, 1:43pm UTC](https://forum.makecode.com/t/snake-coding-game/814/2 "2019-11-26T13:43:32Z")

</div>

What does the flashing LED represent? It flashes rapidly with On Start Programming but slowly with On Start Manual.

---

<div class="post-metadata">

**Author:** ![felixtsu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/felixtsu/32/12024_2.png) [@felixtsu](https://forum.makecode.com/u/felixtsu)\
**Post date:** [November 27, 2019, 9:19am UTC](https://forum.makecode.com/t/snake-coding-game/814/3 "2019-11-27T09:19:08Z")

</div>

The flashing led representing the food (the snake will grow after eating it).

The difference of flashing interval comes from different game tick between the programming mode and manual mode, 0.2 second for programming and 0.5 second for manual (In which the player can press button A / B to turn the snake left / right ).
