Design and Implementation of a Real-Time, Multi-Strategy AI-Powered Web-Based Strategy Game.
Authors
Yash Chaudhari
Electronics and Telecommunications, Thakur College of Engineering and Technology Mumbai, Maharashtra (IN)
Satyveer Chauhan
Electronics and Telecommunications, Thakur College of Engineering and Technology Mumbai, Maharashtra (IN)
Kartikey Aggarwal
Electronics and Telecommunications, Thakur College of Engineering and Technology Mumbai, Maharashtra (IN)
Dr. Sangeeta Mishra
Electronics and Telecommunications, Thakur College of Engineering and Technology Mumbai, Maharashtra (IN)
Article Information
DOI: 10.51583/IJLTEMAS.2025.1410000116
Subject Category: Computer Science and Engineering Artificial Intelligence / Machine Learning, Web Technologies / Software Engineering, Human-Computer Interaction / Game Development
Volume/Issue: 14/10 | Page No: 957-962
Publication Timeline
Submitted: 2025-11-17
Published: 2025-11-17
Abstract
Abstract— The paradigm of web applications has shifted from static content delivery to dynamic, real-time interactive systems. This paper presents a comprehensive study on the design, implementation, and performance evaluation of "Sphere Strike," a full-stack, browser-based abstract strategy game. While the core technologies utilized Flask, Socket.IO, and heuristic-based AI are well-established, the novelty of this work lies in their specific synthesis to address a discernible gap in existing digital versions of the game "Chain Reaction." We detail a client-server system architected on a Python Flask backend, utilizing the Socket.IO protocol over WebSockets to facilitate low-latency, event-driven communication. A primary contribution is the engineering of a multi-strategy, heuristic-based Artificial Intelligence (AI) agent with tiered difficulty levels. The agent's intelligence is derived from a detailed heuristic evaluation function, and its most advanced tier employs a 1-ply lookahead search to identify and exploit game-winning tactical opportunities. The system was containerized using Docker and deployed on a cloud platform (Render.com) to validate its production-readiness. Empirical performance evaluation confirms that the system maintains a mean round-trip network latency of under 200ms and an AI move calculation time consistently under 100ms, delivering a seamless user experience.
Keywords
Real-Time Systems, WebSockets, Socket.IO, Flask, Game AI, Heuristic Functions, Minimax, Client-Server Architecture, Multiplayer Games, Human-Computer Interaction, System Design
Downloads
References
1. Kurose, J. F., & Ross, K. W. (2016). Computer Networking: A Top-Down Approach (7th ed.). Pearson. [Google Scholar] [Crossref]
2. Fette, I., & Melnikov, A. (2011). RFC 6455: The WebSocket Protocol. IETF. [Google Scholar] [Crossref]
3. Grinberg, M. (2018). Flask Web Development: Developing Web Applications with Python (2nd ed.). O’Reilly Media. [Google Scholar] [Crossref]
4. The Flask-SocketIO Development Team. (2024). Flask-SocketIO Documentation. [Google Scholar] [Crossref]
5. The Eventlet Team. (2024). Eventlet Documentation. [Google Scholar] [Crossref]
6. Wang, J., et al. (2012). A Survey on Session-based Recommendation in E-commerce. IEEE Transactions on Knowledge and Data Engineering. [Google Scholar] [Crossref]
7. Russell, S., & Norvig, P. (2020). Artificial Intelligence: A Modern Approach (4th ed.). Pearson. [Google Scholar] [Crossref]
8. Knuth, D. E., & Moore, R. W. (1975). An Analysis of Alpha-Beta Pruning. Artificial Intelligence, 6(4), 293–326. [Google Scholar] [Crossref]
9. Schaeffer, J. (2001). A Gamut of Games. Advances in Computers, 52, 205–258. [Google Scholar] [Crossref]
10. Von Neumann, J., & Morgenstern, O. (1944). Theory of Games and Economic Behavior. Princeton University Press. [Google Scholar] [Crossref]
11. Yannakakis, G. N., & Togelius, J. (2018). Artificial Intelligence and Games. Springer. [Google Scholar] [Crossref]
12. The Flask Development Team. (2024). Flask Documentation. Pallets Projects. [Google Scholar] [Crossref]
13. The Docker Team. (2024). Docker Documentation. [Google Scholar] [Crossref]
14. Crockford, D. (2008). JavaScript: The Good Parts. O’Reilly Media. [Google Scholar] [Crossref]
15. Hetzner, B. (2021). An Introduction to Gunicorn. DigitalOcean Community Tutorials. [Google Scholar] [Crossref]
16. Render.com. (2024). Render Documentation. [Google Scholar] [Crossref]
17. Juul, J. (2005). Half-Real: Video Games between Real Rules and Fictional Worlds. MIT Press. [Google Scholar] [Crossref]
18. Marcotte, E. (2010, May 25). Responsive Web Design. A List Apart. [Google Scholar] [Crossref]
19. Nielsen, J. (1994). Usability Engineering. Morgan Kaufmann. [Google Scholar] [Crossref]
20. Bartle, R. (1996). Hearts, Clubs, Diamonds, Spades: Players Who Suit MUDs. [Google Scholar] [Crossref]
21. Csikszentmihalyi, M. (1990). Flow: The Psychology of Optimal Experience. Harper & Row. [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- Decision Tree and Automatic Linear Modeling Approaches to Predict Body Weight in Indigenous Sabi Sheep and Matebele Goat Females of Zimbabwe
- Microcontroller – Based Automatic Railway Crossing Control and Track Obstacle Monitoring System
- Modelling the Role of Absorptive Capacity in Foreign Direct Investment - Economic Growth Nexus: A Focus on South Africa’s Manufacturing Sector
- AI-Powered Wristband for Accurate BAC Monitoring Using Smart Data Fusion
- Climate Change Impacts on Different Regions