Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Snake Game Simulation (C++ Console Game)

A simple mini project that simulates a text-based Snake game on a terminal/console using the C++ programming language. This project utilizes Circular Linked List to dynamically model the snake's body, as well as the use of pointer and struct as part of the data structure learning material.


🎯 Key Features

  • βœ… Snake movement (up, down, left, right) using keyboard input
  • βœ… Eat food to increase length
  • βœ… Game Over if the snake hits itself
  • βœ… Simple text-based grid view
  • βœ… Scores & Levels that increase with the length of the snake
  • βœ… Bonus: Snake speed increases with level up

🧱 Data Structure Used

  • struct Node: represents one part of the snake's body
  • Circular Linked List: each node points to the next body part, and the last node points back to the head
  • Pointer for node manipulation as the snake moves and grows in length

πŸ‘₯ Group Members

  • Ghassan Ariq Muzakki (2403902)
  • Ihsan Fathin Mohammed (2401413)
  • Malyhah Azizah (2404449)
  • Najwa Salsabila Putri (2402755)
  • Sandy Saputra (2401446)

πŸ“œ License

MIT License – free to use for educational and development purposes.


πŸ’‘ "Coding is not just about syntax, it's about logic and creativity."

About

🐍 Snake Game Simulation - C++ Console Game using Circular Linked List

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages