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
Video of Project → See source code →
Open comments for this post

2h 5m 5s logged

I refactored code for better readibilty. Optimized draw digit function. I think that project is ready to ship.

I refactored code for better readibilty. Optimized draw digit function. I think that project is ready to ship.

Replying to @bartoszkasyna

0
4
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.

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.

Replying to @bartoszkasyna

0
9
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

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

Replying to @bartoszkasyna

0
8
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

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

Replying to @bartoszkasyna

0
14
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

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

Replying to @bartoszkasyna

0
968

Followers

Loading…