How sebas-man/vipervision works
Project Type and Purpose
• This is a single‐application, full‐featured desktop game (SnakeAI) written in Java, using the Processing 4 library for rendering and input.
• Its primary goal is to implement and train an AI agent to play Snake, but in its current form it offers the classic human‐vs‐computer or human‐only gameplay loop with state management (menu, paused, playing, game over).
File Structure
• Top level:
• README.md & .gitignore – project metadata and exclusions
• resources/ – static assets (fonts, images)
• src/ – Java source code
• src/Elements/ – domain entities and UI widgets:
• Snake.java, Apple.java – game entities
• Button.java, ButtonAction.java – interactive menu elements
• src/Vo/ – “value object” or state model:
• GameState.java – enum or class managing current game phase (MENU, PLAYING, PAUSED, GAME_OVER)
• src/SnakeGame.java – the entry point and main game loop, ties everything together.
README for Additional Insights
• Confirms use of Processing 4 for rendering and input handling.
• Describes future AI/ML extensions: AI Agent, Decision Making, Reinforcement Learning.
• Mentions game mechanics (grid‐based movement, collision detection, input buffering, score tracking).