# Sample from GitHub

Source: [https://docs.qualcomm.com/doc/80-88500-5/topic/sample_from_github.html](https://docs.qualcomm.com/doc/80-88500-5/topic/sample_from_github.html)

Note: Not supported on the Linux Embedded
      systems.

A terminal-based snake game written in C with `ncurses`. The program uses
      vim-style to move around. For more information, see [https://github.com/mnisjk/snake](https://github.com/mnisjk/snake).

## Download source code

To download source code on the RB5 development kit, do the following:

1. Install Git on the device.
2. Run the following command on the Qualcomm Robotics RB5 Platform shell terminal:

sh-4.4#git clone https://github.com/mnisjk/snake.gitCopy to clipboard

Note: To clone with SSH, create SSH keys and add it to GitHub.

## Install dependencies

The `snake.c` source file relies on `ncurses` to draw on the terminal. To install on `Ubuntu/Debian`, run the following command:

sh-4.4#apt install libncurses5-devCopy to clipboard

## Compile and run

Run the following commands:

sh-4.4#cd snakeCopy to clipboard

    sh-4.4#gcc -I/usr/include/ -osnake snake.c -lncursesCopy to clipboard

    sh-4.4#./snakeCopy to clipboard

![](data:image/png;base64,UklGRnYEAABXRUJQVlA4TGoEAAAvUAOIAE/BJrJtJ+dWP0iI5BID+EUFDhBAm8EGNthGstXmfkQPHmIqpFFSL8U2FxPbtpWc7/XHj0NlKsw/O2S3xPwH8P9/ygIJeGCBBRoLWMFzAmpJVxK5QApSEOMEG9/GM/G0xVUnO5ONAbSKP41zMF+rqXiNBTT2jeHUzBd49zHKkQgSQSIJSARAkCRJcbNilpmZ7f+/UHd7Y3ZLvTpXRP/dMJLkKIM//tAEeJ7Sx8+d4rRrQ+W1POUtFZ5d5/L93d8V/M/x7iyldLI3N1sBbUeHO1fp7GDZM1sBQXmIcro/T8e712YrIORCcHh4iIaPdm/258lrBZQMB4dqH+TsYLd67fdaASUJztdns2n5s1X1XGW1AlKmNa/N52Wp30/v7lwlrxUQlOyWghzu3O4vumYrICeNG2zkeDf7wsdsBaT9oJz9GpEtZ7YC0nJYPU9lz1hmK9DyXSm3BRr8tyw8FrGWhcVeSqI7uaJ8wLLw2Huz4E4ubbjJC5js007zTq5tkSYvYLI07+TS8hLwAh47adzJtU17ingBh10RWBbaEvICDpsYWBbSUv9v02jTgju5tgS8gMeWDiwLaQl4AY+NBZaFsmHbrUMIh3ksUEf/8sV1loW0NTRsZ1koi+ssC2nDprMstP3+ZTrLQts0z1kW4tbQMJ1loS2usyykxXWWhbSUJ8vi3naWxTbF30b+FQ39x3WWhbQ1NGxnWSiL6ywLacPb4paFvmnEblnI+/2rBWVZ3JWnnLc4Q/+xnWWh7Mh2loWyuM6ykDZsOstC2yKmsyy0TfOcZSHuhkxnWWiL6ywLaTGcZaFvmuMsC3m/f9nOsmj5rpSL/5YF/lsW+G9Z4L9lgf+WBf5bFvhvWeC/ZYH/lgX+Wxb4b1ngv2WB/5YF/lsW+G9ZELdlgf+WBf5bFvhvWeC/ZYH/lgX+Wxb4b1ngv2WB/5ZFm8yywH/L4mJc7yb2sizEpmcxy0JtHGZZyI3BLAu9sZhlIXiRqbksC71HDrMs5MZcloXmae6yLCT//mUxy8JjwX/LAv+3jwL/t4+C97ePAv+3jwL/g/+WBf5bFvhvWWwFWhb4b1l0R6PR8FMFyotl0Rv1U+oOPlWguFgWg+GnCmxulsWan9GnCmxulsW6f83qDeWnCpQZy2JYfePxqQJlxrLorx6unypQYiyL+nvE3qcKbGqWxbp/E6t8qkBpsSyG2XLDTxUoL5bFaDQaDT5dAP8tCxS3LDablBfLAoy3jwL/t48C/y0L/Lcs8N+yIHPLAv8tC/y3LPDfssB/ywL/LQv8tyzw37LAf8sC/y0L/Lcs8N+ywH/LAv8tC/y3LPDfssB/ywL/LQv8tyzw37LAf8sC/y0L/Lcs8N+ywH/LAv8tC3y2LPDfsvBYAbGWhccKaLUsPFZArGVhsQJqLQuLFVBrWTisgFzLwmIF1FoWZisgLse72Rc+Hiug1rLwWAGxloXZCrR8V8rF/+B/8D/4H/wP/gf/g//B/+B/8D+YFvzPJQ==)

**Parent Topic:** [Develop using RB5 platform](https://docs.qualcomm.com/doc/80-88500-5/topic/develop_the_device_using_qualcomm_robotics_rb5_platform.html)

Last Published: Nov 25, 2025

[Previous Topic
Develop using RB5 platform](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/develop_the_device_using_qualcomm_robotics_rb5_platform.md) [Next Topic
References](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/References.md)