🌟 Inspiration

The recent advancements in Language Model (LM) technologies, including ChatGPT, have sparked our creativity. We aimed to blend the classic charm of the Nokia Snake Game with the cutting-edge capabilities of LMs. Our two-fold objective was:

  1. Revitalizing the Classic: Transforming the timeless Nokia Snake Game into a 2024 version, infused with LM innovations.
  2. Educational and Fun Competition: Introducing a platform to teach the significance of effective Prompt Engineering in an entertaining, competitive setting with friends.

👩🏽‍🎓 What It Does

In a nutshell, we've transformed the classic 1v1 Snake game into a battle of LMs. Instead of playing traditionally, players craft a strategic prompt that dictates the game's AI behavior. This approach turns the game into a test of skill in prompt engineering, offering a unique challenge to determine who among your friends is the superior prompt engineer.

👨🏽‍💻 How We Built It

Our development process involved several key steps:

  • Re-creating the Snake Game: We developed our version from scratch to fit our unique concept, which wasn't possible with existing clones.
  • Advanced Multiplayer Networking: Utilizing socket programming, we created a robust system for multiplayer interactions.
  • LM Integration: We wrapped the OpenAI API within our system, allowing for prompt-driven gameplay.

Tech Stack: Our project is built using NextJs, Typescript, ShadCn, Supabase, and the OpenAI API.

🚧 Challenges We Ran Into

  • Time Constraints and Idea Pivot: Our initial concept had to be adjusted to fit the hackathon timeline.
  • Socket Implementation: Developing a real-time, multiplayer game environment with smooth synchronization posed a significant technical challenge.
  • Full-Stack Integration: Combining different technologies like OpenAI API and Supabase required meticulous coordination for seamless operation.

💪 Accomplishments We're Proud Of

  • Innovative Recreation of Snake Game: Successfully adding a unique, AI-driven twist to the classic game.
  • Seamless Multiplayer Experience: Our integration of real-time multiplayer gameplay stands out as a significant achievement.

🚀 What's Next for A Brilliant Cobra Duel

  • Introduction of a Ranked System: To add a competitive edge to the gameplay.
  • Model Options: Providing players with a choice of different LM models for varied strategies and gameplay experiences.

Built With

Share this project:

Updates