Ok is there link to any battle simulator in Java or anyother thing for that matter than can simlate an RPG (Modern tech) battle? Just RP stuff is getting hairy (Nationstates) and something that can actually sim would be much appreciated

Books have been written about creating games (including several specifically about RPGs and RTSs).
I don't know any websites giving complete (or even partial) code listings for one though. That's not to say they don't exist, but I've never looked for them.