/* CS102 - Jim Plank */
/* A program that uses the MasterMind class to play two games between "Folded-hands-guy" and
   "His-Honey", and then declaring the winner between the two. */

#include <iostream>
using namespace std;

#include "mm.h"

int main()
{
  MasterMind game;
  int p1score, p2score;

  game.play_game("Folded-hands-guy", "His-Honey");
  p1score = game.get_nguesses();

  game.play_game("His-Honey", "Folded-hands-guy");
  p2score = game.get_nguesses();

  if (p1score < p2score) {
    cout << "Player 1 wins.\n";
  } else if (p1score > p2score) {
    cout << "Player 2 wins.\n";
  } else {
    cout << "It's a tie.\n";
  }
  return 0;
}

