I have this dilema
• Players simultaneously choose a move: ‘c’ or ‘d’
• If both choose ‘c’, they get $3 each
• If both choose ‘d’, they get $1 each
• If one chooses ‘c’ and one chooses ‘d’, the ‘d’ player gets $5 and the ‘c’
player gets nothing
I need to input it into
public static int getScore(char firstPlayerMove, char secondPlayerMove ) { return 0;
this will get the scores when replacing 0.
is this the right start? and how do I input the rest. Pretty stuck