Monday, October 8, 2007

A Simple Text Fighter

This program demonstrates two players fighting with each other. The winner is determined by random, which has 50% to win each fight. The winner will receive the difference between the power of player and the loser. On the other hand, the loser will decrease the difference between the power of player and the loser.
Here is the program:
http://pastebin.ca/726808
http://pastebin.ca/726810

Testing

Test