Permalink
Browse files

Better naming.

  • Loading branch information...
1 parent d56eb07 commit c0542f5d76c9fe5ec312dddeb5b4d53a76a525f9 @lrozenblyum committed Nov 26, 2012
@@ -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 );
@@ -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

0 comments on commit c0542f5

Please sign in to comment.