Rock Paper Scissors


#1
#include <iostream>
#include <stdlib.h>

int main() {

  // Live long and prosper
srand(time(NULL));
int computer = rand() % 3 + 1;
int user = 0;
  
std::cout << "====================\n";
std::cout << "rock paper scissors!\n";
std::cout << "====================\n";

std::cout << "1) ✊\n";
std::cout << "2) ✋\n";
std::cout << "3) ✌️\n";

std::cout << "shoot! \n";
  
std::cin >> user;

switch(user)
{
  case 1:
    computer == user;
    std::cout << "Computer: " computer << "\n User: " << user << "\nTie!\n";
    break;
  case 2:
    computer == 1;
    user == 2;
    std::cout << "Computer: " computer << "\n User: " << user << "\nYou Win!\n";
    break;
  default: 
    std::cout << "Neither a Tie nor Computer 1 and User 2 \n";
    break;
}
  
/*3 options with one outcome each together, creates 9 
possible outcomes.  3 of the outcomes are tied.  This 
becomes 25 if it's 5 options, or 1 tie, 2 wins and 2 losses 
for each option.  For 3 options, it's 1 win, 1 loss and 1 tie per option*/
  
/*if 1, 2 or 3 from computer matches with 1, 2, or 3 from 
user then it's a tie */
  
//if computer is 1 and user is 2, then user wins
//if computer is 1 and user is 3, then computer wins
  
//if computer is 2 and user is 1, then computer wins
//if computer is 2 and user is 3, then user wins

//if computer is 3 and user is 1, then user wins
//if computer is 3 and user is 2, then computer wins

}

Unfortunately I get this error