Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better naming.

  • Loading branch information...
commit c0542f5d76c9fe5ec312dddeb5b4d53a76a525f9 1 parent d56eb07
@lrozenblyum authored
View
2  src/main/java/com/leokom/chess/MainRunner.java
@@ -18,7 +18,7 @@ private MainRunner() {
public static void main( String[] args ) {
logger.info( "Starting the chess..." );
- final Player player = WinboardFactory.getController();
+ final Player player = WinboardFactory.getPlayer();
final Listener onMoveListener = new MoveListener( player );
View
2  src/main/java/com/leokom/chess/gui/winboard/WinboardFactory.java
@@ -13,7 +13,7 @@ private WinboardFactory() {}
/**
* @return instance of properly initialized WinboardPlayer
*/
- public static Player getController() {
+ public static Player getPlayer() {
//TODO: if in any application place we'll use System.out.println or System.in.read
//this may damage Winboard behaviour. The easiest way to fix it is to redirect System.out, System.in calls
//to anything else (Logger?) and use the 'standard' in/out only inside WinboardPlayer
Please sign in to comment.
Something went wrong with that request. Please try again.