fork download
  1. #include <algorithm>
  2. #include <iostream>
  3. #include <sstream>
  4. #include <string>
  5. #include <deque>
  6. #include <cstdlib>
  7. #include <ctime>
  8.  
  9. using namespace std;
  10.  
  11. enum { ROCK = 0, PAPER = 1, SCISSORS = 2 };
  12. enum { WIN = 0, LOSS = 1, DRAW = 2 };
  13.  
  14. const string moveStrTable[3] = { "rock", "paper", "scissors" };
  15. const string outcomeStrTable[3] = { "You win!", "You lose...", "It's a draw." };
  16.  
  17. const int outcomeTable[3][3] = {
  18. { DRAW, LOSS, WIN },
  19. { WIN, DRAW, LOSS },
  20. { LOSS, WIN, DRAW },
  21. };
  22.  
  23. const int winMoveTable[3] = { PAPER, SCISSORS, ROCK };
  24.  
  25. struct RPSAI
  26. {
  27. const deque<int> & humanMoves;
  28.  
  29. RPSAI(const deque<int> & hm) : humanMoves(hm) { }
  30.  
  31. struct Guess
  32. {
  33. int move;
  34. double strength;
  35.  
  36. Guess() { }
  37. Guess(int m, double s) : move(m), strength(s) { }
  38. };
  39.  
  40. Guess bestGuessForPattern(const deque<int> & pattern, bool & matchFound)
  41. {
  42. matchFound = false;
  43.  
  44. double ms[3] = { 0.0 }; // move strength
  45.  
  46. for (int i = 1; i < humanMoves.size() - pattern.size() + 1; ++ i)
  47. {
  48. if (pattern == deque<int>(humanMoves.begin() + i,
  49. humanMoves.begin() + i + pattern.size()))
  50. {
  51. ms[humanMoves[i - 1]] += 10.0 / i;
  52. matchFound = true;
  53. }
  54. }
  55.  
  56. int msi[3] = { 0, 1, 2 }; // move strength indexes
  57.  
  58. int maxi = *max_element(msi, msi + 3, [ms](int a, int b) { return ms[a] < ms[b]; });
  59.  
  60. return Guess(winMoveTable[maxi], ms[maxi] * 10.0 * pattern.size() * pattern.size());
  61. }
  62.  
  63. int nextMove()
  64. {
  65. if (humanMoves.empty()) return rand() % 3;
  66.  
  67. deque<Guess> guessList;
  68.  
  69. for (int i = 1; i <= 20; ++ i)
  70. {
  71. if (humanMoves.size() < i) continue;
  72.  
  73. bool matchFound = false;
  74.  
  75. Guess guess = bestGuessForPattern(deque<int>(humanMoves.begin(),
  76. humanMoves.begin() + i), matchFound);
  77.  
  78. if (matchFound) guessList.push_back(guess);
  79. }
  80.  
  81. if (guessList.empty()) return rand() % 3;
  82.  
  83. return max_element(guessList.begin(), guessList.end(),
  84. [](const Guess & g1, const Guess & g2) { return g1.strength < g2.strength; })->move;
  85. }
  86. };
  87.  
  88. bool getInt(int & n) { string str; getline(cin, str); return stringstream(str) >> n; }
  89.  
  90. int main()
  91. {
  92. srand(time(0));
  93.  
  94. int humanMove, computerMove;
  95. int outcome, outcomes[3] = { 0 };
  96.  
  97. deque<int> humanMoves;
  98.  
  99. RPSAI ai(humanMoves);
  100.  
  101. while (true)
  102. {
  103. cout << "Wins : " << outcomes[WIN ];
  104. cout << "\nLosses : " << outcomes[LOSS];
  105. cout << "\nDraws : " << outcomes[DRAW];
  106.  
  107. cout << "\n\n(1) [Rock] \n(2) [Paper] \n(3) [Scissors] \n(4) [Quit] \n\n>";
  108.  
  109. int choice;
  110.  
  111. //while (!getInt(choice) || choice < 1 || choice > 4) cout << ">";
  112.  
  113. cin >> choice; // for ideone demo
  114.  
  115. if (choice == 4) break;
  116.  
  117. humanMove = choice - 1;
  118. computerMove = ai.nextMove();
  119.  
  120. cout << "\nYou chose " << moveStrTable[ humanMove] << ".\n";
  121. cout << "I chose " << moveStrTable[computerMove] << ".\n";
  122.  
  123. outcomes[outcome = outcomeTable[humanMove][computerMove]] ++;
  124.  
  125. cout << '\n' << outcomeStrTable[outcome] << '\n' << endl;
  126.  
  127. humanMoves.push_front(humanMove);
  128. if (humanMoves.size() > 100) humanMoves.pop_back();
  129. }
  130. }
Success #stdin #stdout 0.07s 3076KB
stdin
1 1 1 1 1 3 3 3 3 3 2 2 2 2 2 1 2 1 2 1 2 1 2 1 2 3 1 3 1 3 1 3 1 3 1 3 2 1 3 2 1 3 2 1 3 2 1 2 2 3 3 1 2 2 3 3
1 2 2 3 3 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 3 3 1 2 3 3 1 2 3 3 1 2 3 3 1 2 1 1 2 2 3 3 2 2 1 1 1 1 2 2 3 3 2 2 
1 1 1 1 2 2 3 3 2 2 1 1 3 3 3 3 3 1 1 1 1 1 2 2 2 2 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 3 2 1 2 2 3 2 2 1 2 2 3 2 2 1
4
stdout
Wins   : 0
Losses : 0
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 0
Losses : 1
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 0
Losses : 2
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 0
Losses : 3
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 0
Losses : 4
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 0
Losses : 5
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose paper.

You win!

Wins   : 1
Losses : 5
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 1
Losses : 6
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 1
Losses : 7
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 1
Losses : 8
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 1
Losses : 9
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 2
Losses : 9
Draws  : 0

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 2
Losses : 9
Draws  : 1

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 2
Losses : 10
Draws  : 1

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 2
Losses : 11
Draws  : 1

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 2
Losses : 12
Draws  : 1

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 3
Losses : 12
Draws  : 1

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 3
Losses : 12
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 4
Losses : 12
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 4
Losses : 13
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 4
Losses : 14
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 4
Losses : 15
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 4
Losses : 16
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 4
Losses : 17
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 4
Losses : 18
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 4
Losses : 19
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose paper.

You win!

Wins   : 5
Losses : 19
Draws  : 2

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 5
Losses : 19
Draws  : 3

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 5
Losses : 19
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 20
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 21
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 22
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 23
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 24
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 25
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 26
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 27
Draws  : 4

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 5
Losses : 27
Draws  : 5

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 28
Draws  : 5

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 5
Losses : 28
Draws  : 6

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 5
Losses : 28
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 29
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 30
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 5
Losses : 31
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 32
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 5
Losses : 33
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 5
Losses : 34
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 5
Losses : 35
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 6
Losses : 35
Draws  : 7

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 6
Losses : 35
Draws  : 8

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 6
Losses : 35
Draws  : 9

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 6
Losses : 35
Draws  : 10

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 6
Losses : 35
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 7
Losses : 35
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 7
Losses : 36
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 7
Losses : 37
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 7
Losses : 38
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 7
Losses : 39
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 7
Losses : 40
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 7
Losses : 41
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 7
Losses : 42
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 7
Losses : 43
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 7
Losses : 44
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 7
Losses : 45
Draws  : 11

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 7
Losses : 45
Draws  : 12

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 8
Losses : 45
Draws  : 12

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 8
Losses : 45
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 9
Losses : 45
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 46
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 47
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 48
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 49
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 50
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 51
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 52
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 53
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 54
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 55
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 56
Draws  : 13

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 9
Losses : 56
Draws  : 14

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 9
Losses : 56
Draws  : 15

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 9
Losses : 56
Draws  : 16

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 57
Draws  : 16

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 58
Draws  : 16

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 9
Losses : 58
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 59
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 60
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 61
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 62
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 63
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 64
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 65
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 9
Losses : 66
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 9
Losses : 67
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 9
Losses : 68
Draws  : 17

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 9
Losses : 68
Draws  : 18

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 10
Losses : 68
Draws  : 18

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 10
Losses : 68
Draws  : 19

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 11
Losses : 68
Draws  : 19

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 11
Losses : 68
Draws  : 20

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 11
Losses : 69
Draws  : 20

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 11
Losses : 69
Draws  : 21

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 11
Losses : 69
Draws  : 22

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 12
Losses : 69
Draws  : 22

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 13
Losses : 69
Draws  : 22

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 14
Losses : 69
Draws  : 22

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 14
Losses : 70
Draws  : 22

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 14
Losses : 70
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 15
Losses : 70
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 15
Losses : 71
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 15
Losses : 72
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 73
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 74
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 75
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 76
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 77
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 78
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 79
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 80
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 15
Losses : 81
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 15
Losses : 82
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 83
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 15
Losses : 84
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 85
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 15
Losses : 86
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose paper.

You win!

Wins   : 16
Losses : 86
Draws  : 23

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 16
Losses : 86
Draws  : 24

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 16
Losses : 87
Draws  : 24

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 16
Losses : 88
Draws  : 24

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 16
Losses : 89
Draws  : 24

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 16
Losses : 89
Draws  : 25

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 17
Losses : 89
Draws  : 25

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 17
Losses : 90
Draws  : 25

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 17
Losses : 91
Draws  : 25

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 17
Losses : 92
Draws  : 25

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 17
Losses : 92
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 17
Losses : 93
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 18
Losses : 93
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 18
Losses : 94
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 18
Losses : 95
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose scissors.

You win!

Wins   : 19
Losses : 95
Draws  : 26

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 19
Losses : 95
Draws  : 27

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 19
Losses : 95
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 20
Losses : 95
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 20
Losses : 96
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 97
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 20
Losses : 98
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 99
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 20
Losses : 100
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 101
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 20
Losses : 102
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 103
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 20
Losses : 104
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 105
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 20
Losses : 106
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 107
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 20
Losses : 108
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 20
Losses : 109
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 21
Losses : 109
Draws  : 28

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose scissors.

It's a draw.

Wins   : 21
Losses : 109
Draws  : 29

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 21
Losses : 110
Draws  : 29

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose paper.

It's a draw.

Wins   : 21
Losses : 110
Draws  : 30

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose rock.

It's a draw.

Wins   : 21
Losses : 110
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 21
Losses : 111
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose rock.

You win!

Wins   : 22
Losses : 111
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose scissors.
I chose rock.

You lose...

Wins   : 22
Losses : 112
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 22
Losses : 113
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose paper.
I chose scissors.

You lose...

Wins   : 22
Losses : 114
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>
You chose rock.
I chose paper.

You lose...

Wins   : 22
Losses : 115
Draws  : 31

(1) [Rock] 
(2) [Paper] 
(3) [Scissors] 
(4) [Quit] 

>