Skip to content

reddheeraj/GameOfThrones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 Game Of Thrones (prev known as InstaPolitics)

Game Of Thrones is an agentic sandbox application which simulates how social media influences decisions.

image

** Was initially a hackathon submission, but modified it a lot and made it a class project submission hahahaha

🚀 Inspiration

Social media is reshaping modern politics, and InstaPolitics was born to explore that connection! The idea was to create a hands-on simulation where students, especially those in business, education, and political science, can study how politicians sway voters through social media. With InstaPolitics, you can see how political figures craft messages, influence public opinion, and ultimately shape election outcomes in real-time.


🌍 What It Does

InstaPolitics is a full-stack web app that simulates the complex dynamics of political campaigns and voter behavior. Define personalities for your agents and see them play it out.

  • 🏛️ Politician Agents: Define unique personalities for political figures, who will post on a Custom-Built Social Media Platform.
  • 👥 Citizen Agents: Voters react to posts based on their personalities and biases, or decide to not vote. Each move is stored in their own memory.
  • 🎯 Influence and Decision-Making: Watch how posts influence voters and drive decisions at the ballot box.
  • 📊 Real-Time Simulation: See political strategies unfold and voter behavior evolve in real-time.
  • Goal: To understand how social media shapes modern political influence through direct interaction and dynamic feedback.

Final look:

image

Prototype look:

image

Shows why a particular politician won the elections (based on people's memories):

image


🛠️ How I Built It

Here's the full-stack architecture breakdown:

image

🛠️ Tech Stack

Component Tech Used Purpose
Frontend React, Vite, MaterialUI, Socket.IO Responsive UI, real-time updates
Backend Flask, Python State management, API handling
Agent Framework Customer Framework over Langchain Decision-making and content generation for agents
Search ChromaDB, BM25 Vector search and ranking for relevance
LLM Support Groq, Gemini, Ollama Generating realistic political content
Real-Time Communication Socket.IO Live updates and interactions
Data Storage ChromaDB Storing embeddings for agent memory and search
Ranking BM25 Ranking social media posts based on influence

About

Simulate the complex dynamics of agentic political campaigns and agentic voter behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors