forked from NBnfork/Group21RPS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscissors.cpp
More file actions
29 lines (24 loc) · 772 Bytes
/
Copy pathscissors.cpp
File metadata and controls
29 lines (24 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*********************************************************************
* Author: Noah Buchen, Alexandra Henley, Elliott Lapinel, Patrick
* Rice, and Samantha Tone
* Date: 10/25/2017
* Description: The Scissors Class will have it's own fight function.
* That will override the Tool base class.
*********************************************************************/
#include "scissors.hpp"
Scissors::Scissors() {
//set default strength
this->strength = 1;
}
Scissors::Scissors(int userInput) {
//user sets strength
this->setStrength(userInput);
}
void Scissors::setStrength(int userInput) {
strength = userInput;
}
char Scissors::fight(char computer) {
char winner; // 'h', 'c', 't' (human, computer, tie)
//TODO
return winner;
}