/**
* The MIT License (MIT)
*
* Copyright (c) 2017 D3v3l0p3d_0n3
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package ru.beykerykt.bullsandcows.base.players;

import java.util.Scanner;

import ru.beykerykt.bullsandcows.base.gui.IUserInterface;

public class HumanPlayer extends BasePlayer {

	public HumanPlayer(String name, String code, IUserInterface gui) {
		super(name, code, gui);
	}

	@Override
	public void nextGuess(BasePlayer bot) {
		getUserInterface().showText("Guess a 4-digit number with no duplicate digits: ");
		// getUserInterface().showText(bot.getSecretCode());
		Scanner input = new Scanner(System.in);
		int guess = input.nextInt();
		String line = String.valueOf(guess);
		getUserInterface().showText(bot.getHint(line));
	}

}
@@ -1701,16 +1701,45 @@
 guess);%0A
+%09%09guessCodeTo(bot, line);%0A%09%09%0A
 %09%09getUse

add missing line