Guess the number/With feedback (player): Difference between revisions

Content added Content deleted
(Add Red)
m (→‎{{header|R}}: Syntax highlighting.)
Line 2,670: Line 2,670:
=={{header|R}}==
=={{header|R}}==
Can be fooled if you lie to it. For example, always reporting "h" for guessANumberPlayer(1,5) will have it guess 0.
Can be fooled if you lie to it. For example, always reporting "h" for guessANumberPlayer(1,5) will have it guess 0.
<lang r>guessANumberPlayer<-function(low,high)
<lang rsplus>guessANumberPlayer<-function(low,high)
{
{
boundryErrorCheck(low,high)
boundryErrorCheck(low,high)