nabeelwaheed/java-networked-strategy-game ? reverse-engineered prompt

Reverse engineered prompt

Build me a console based Java strategy game where a player can grow a village, build things like farms, mines, towers, and cannons, train different units, upgrade everything, explore enemy villages, attack for loot, and test a defense army. I want it to work over a client and server setup, so the game runs through a server with multiple players connecting at once, and the client just handles the console interaction.

Please include a simple login step before play, saving and loading player progress, and a way for the game state to be stored in XML. The server should keep each player session separate and handle actions safely even when many people are connected. It should feel like a clean object oriented project with separate model, controller, and console UI code, and the combat logic should be easy to swap or adapt if needed. If you need to, look up current Java socket or XML docs online for anything that is unclear.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab