id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

amjadm@miamioh.edu assignment3 > rPSGame
prev  |  next  |  chance

Play the rock, paper, scissors game. Given two string, s1 as human choice, and s2 as computer choice, return either "human" or "computer" as a winer. if both play the same, the game will be "tie"


rPSGame("paper", "rock") → "human"
rPSGame("paper", "scissors") → "computer"
rPSGame("paper", "paper") → "tie"

...Save, Compile, Run (ctrl-enter)

public String rPSGame(String s1, String s2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 150

Copyright Nick Parlante 2017 - privacy