Skip to content

Commit

Permalink
Better naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrozenblyum committed Nov 26, 2012
1 parent d56eb07 commit c0542f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/leokom/chess/MainRunner.java
Expand Up @@ -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 );

Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit c0542f5

Please sign in to comment.