Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Card[] deck_1 = new Card[7];
- Card[] deck_2 = new Card[7];
- do {
- string player_says = PlayerListener.getHttpCommand();
- if (player_says == "ATTACK_1_5") {
- int damage = deck_1[1].Attack(deck_2[5]);
- player_1.hp -= damage;
- } else if (player_says = "SURRENDER_1") {
- Player1Wins();
- break;
- }
- } while (SERVER_ON);
- bool SERVER_ON = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement