Design and Practical Realization of The Snake Game Using Arduino Nano

IEEESTEC 17TH (2024), (pp. 225–230)

АУТОР / AUTHOR(S): Iva Cvetanović, Petar Nikolić

Download Full Pdf    

DOI: 10.46793/IEEESTEC17.225C

САЖЕТАК / ABSTRACT:

This project is based on the world-famous Snake game, which was first introduced to the public in 1997, with its fairly simple premise: the player controls the movements of the snake, leading it towards the apple – a single pixel on the screen – which, after being eaten, causes the snake’s body to elongate. After pressing a button, the player exits the pre-game state (including a welcome screen and, if second button is pressed, the leaderboard is shown on a 16*2 Liquid Crystal Display, i.e. LCD) and enters the in-game state, with the LCD now showing the player’s current score determined by the number of eaten apples, and both the snake and the apple being shown on two LED (Light Emitting Diode) matrices daisy-chained together. In case of the snake colliding with its own body, the LCD shows the game-over screen, updating the leaderboard according to the data stored in the EEPROM (Electrically Erasable Programmable Read-Only Memory) to show the three highest scores and the names entered by the players who achieved them.

КЉУЧНЕ РЕЧИ / KEYWORDS:

snake game, microcontroller, EEPROM, interrupt, LCD.

ЛИТЕРАТУРА/ REFERENCES: