AWS Logo
Menu
Cognify

Cognify

CogniFy is an AI-powered word-guessing game developed for the AWS Game Builder Challenge, showcasing human creativity in a fun battle of wits and knowledge.

Published Jan 14, 2025

🎮 CogniFy: Where Creativity Meets AI-Driven Gameplay

CogniFy is a groundbreaking, creativity-fueled word-guessing game powered by AWS services, where players face off against an advanced AI to decode daily target words. Set in a futuristic world where AI dominates human knowledge, CogniFy highlights the irreplaceable ingenuity and intuition of humans.
Built with AWS’s scalable cloud infrastructure, CogniFy offers a seamless gaming experience, blending creativity, fun, and education. The game encourages players to reclaim words that represent humanity's culture and history, proving that human creativity is the ultimate weapon in the battle against AI domination.

🗂️ Table of Contents


💡 Features

1. AI-Driven Word-Guessing Gameplay

  • Compete against an AI that uses Amazon Bedrock’s models for real-time guessing.
  • Similarity feedback for player guesses is calculated using GloVe embeddings.

2. Daily Challenges

  • Every day brings a new target word, encouraging players to strategize and improve.
  • A global leaderboard fosters friendly competition.

3. Performance Tracking

  • Monitor progress with detailed statistics:
    • Total games played
    • Best rank achieved
    • Completion rate
    • Average guesses per game
  • Review recent games to refine strategies.

4. Seamless Cloud Integration

  • Powered by AWS ECS for scalability, with infrastructure managed via CloudFormation.
  • Real-time updates and responsiveness, thanks to Flask backend and AJAX-driven frontend.

🛠️ Architecture Overview

Core Flow

  1. Player Input and AI Guessing:
    • Players and AI submit guesses, with similarity feedback calculated using GloVe embeddings.
    • AI guesses are powered by Amazon Bedrock’s Mistral Model, ensuring dynamic and competitive gameplay.
  2. Backend:
    • Built with Flask, it handles game logic, processes player statistics, and manages leaderboards.
  3. Frontend:
    • A responsive JavaScript interface offers an intuitive user experience with real-time feedback.
  4. Cloud Deployment:
    • Deployed via Docker containers on AWS ECS, ensuring reliability and scalability.
    • Route 53 manages DNS, and CloudFormation simplifies infrastructure as code.

👥 Development Team

CogniFy was created by a team of developers and AI enthusiasts, blending cutting-edge technology with a passion for creativity and innovation.

🚀 Challenges and Solutions

1. Embedding Model Limitations

  • Challenge: GloVe embeddings have a limited vocabulary, causing some words to lack similarity metrics.
  • Solution: Implemented fallback mechanisms and expanded embeddings with additional data.

2. Real-Time AI Responsiveness

  • Challenge: Ensuring minimal latency during AI-driven gameplay.
  • Solution: Utilized caching and AWS services for optimized performance.

3. Scalable Cloud Deployment

  • Challenge: Setting up a scalable and secure infrastructure.
  • Solution: Leveraged AWS ECS, CloudFormation, and Route 53 for a robust deployment.

🏆 Achievements

  • Seamlessly integrated Amazon Bedrock and GloVe embeddings for dynamic AI gameplay.
  • Delivered a visually appealing and interactive interface that keeps players engaged.
  • Built a scalable and secure cloud infrastructure using AWS services.

🎯 What’s Next for CogniFy

  • Multiplayer Mode: Introduce real-time battles between friends.
  • Mobile App: Launch iOS and Android versions for wider accessibility.
  • Advanced AI: Upgrade to more sophisticated models for improved guessing capabilities.
  • Gamification: Add rewards, achievements, and daily streaks to enhance engagement.
  • Language Expansion: Support multiple languages for a global audience.
     

Comments