You are browsing as a guest. Sign up (or log in) to start making projects!

SSSnake

Hardware
  • 7 Devlogs
  • 11 Total hours

I am building simple Snake game on raspberry pico 2 using c++/assembly. I use custom ILI9341 display driver. I have plan to make small ai capable of playing snake in real time with only ~400KB of RAM

Ship #1

I made classic snake game running on raspberry pi pico 2. There are two play modes - 1st player mode, 2nd AI agent mode. Making such small AI which can play game fluently on pico 2(512 KB RAM) was challenging.

  • 7 devlogs
  • 11h build
  • 5.63x multiplier
  • 4 Stardust
Video of Project → See source code →
Open comments for this post

3h 25m 20s logged

I have implemented DQN Agent with input size 11 hidden state 128 output size 3 which can play snake game in real time on raspberry pi pico 2. I will try make it better, best scores achieved by ai was 52. I also noticed bug where snake body is larger than one square of grid. Now I’ll focus on optimalization and bug fixes.

0
0
10
Open comments for this post

1h 10m 52s logged

Little changes in layout for better game experience. Added Assembly utils for optimalization. Fixed bug - Eaten apple sound wasnt stopping when player died what caused beeping until new game. Added new load screen. Added support for \n in drawString function

0
0
10
Open comments for this post

1h 13m 51s logged

Previously font size was fixed now you can adjust it. Added loose screen and melody generator when you catch apple. Now I will add more sound like death sound or snake length achievment sound. Then I will focus on creating edge ai capable of playing snake with only 512KB ram on PICO 2

0
0
16
Open comments for this post

1h 16m 47s logged

I have implemented basic snake gae. Now I will work on optimalization and lose screen.Later I will try make edge AI capable of working fluently on PICO 2 with 520MB RAM. PS: It’s hard to play and record in same time

4
0
970

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…