I just wanna say, that for one of my assignments in my programming class at Uni I programmed a Pokemon Battle to run text-only out of the command line, with file reading for all the Pokemon/Moves/etc. That took me four weeks to get right, let alone good, and was over 800 lines of code at submission. And even then, moves could only deal damage (i.e. no status or stat raising) and you couldn't use items. Point is, just a battle was hard enough work, so I hope you and your friend aren't being too ambitious with this. Good luck.