This repository was created to demonstrate how object oriented design can be utilized to create a card game. The game in this example has no true objective, but is simply a demonstration of how the classes can be used to create a game.
...
...
...
Player
1
usesCard 132
against player4
.
Player Details: -26H, 100M, 26C
Target Details: -7H, 100M, 10C
Result:
Player Details: -26H, 100M, 26C
Target Details: -14H, 100M, 10CPlayer
2
usesCard 137
against player3
.
Player Details: 10H, 100M, 17C
Target Details: 4H, 100M, 27C
Result:
Player Details: 10H, 100M, 17C
Target Details: 1H, 100M, 27CPlayer
3
usesCard 116
against player2
.
Player Details: 1H, 100M, 27C
Target Details: 10H, 100M, 17C
Result:
Player Details: 1H, 100M, 27C
Target Details: 7H, 100M, 17CPlayer
4
usesCard 120
against player2
.
Player Details: -14H, 100M, 10C
Target Details: 7H, 100M, 17C
Behavior: Card 120 -> 9
Result:
Player Details: -14H, 100M, 10C
Target Details: -2H, 100M, 26CGame cmpleted in 92 turns.
Behaviors were applied during this simulation.
Player 3 wins.
Press any key to exit.
...