diff options
Diffstat (limited to 'src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala')
-rw-r--r-- | src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala b/src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala index dc1c84c..4ecf1e1 100644 --- a/src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala +++ b/src/main/scala/me/robbyzambito/othello/game/UserPlayer.scala @@ -4,12 +4,13 @@ import scala.io.StdIn import scala.util.Try /** - * Represents a party which is partaking in the game. - * Both the AI and the end user are instances of Player. + * Allows for the User to input their moves. * * Written by Robby Zambito * Written on 11/20/2019 * Targeting Scala 2.13.1 + * + * See [[Player]] */ case class UserPlayer(override val color: Position) extends Player(color) { @@ -22,6 +23,8 @@ case class UserPlayer(override val color: Position) extends Player(color) { Try(StdIn.readLine(s"Enter the col to move for ${this}: ").toInt) ).dropWhile(_.isFailure).next().get + println() + (rowCount, colCount) } |