Interface HumanPlayer.Input

Enclosing class:
HumanPlayer

public static sealed interface HumanPlayer.Input
Represents an input source that can be used to read a line of text.
  • Method Summary

    Modifier and Type
    Method
    Description
    Reads a line of text from the input source.
  • Method Details

    • readLine

      String readLine()
      Reads a line of text from the input source.
      Returns:
      the line of text read from the input source.