Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better naming.

  • Loading branch information...
commit c0542f5d76c9fe5ec312dddeb5b4d53a76a525f9 1 parent d56eb07
@lrozenblyum authored
2  src/main/java/com/leokom/chess/
@@ -18,7 +18,7 @@ private MainRunner() {
public static void main( String[] args ) { "Starting the chess..." );
- final Player player = WinboardFactory.getController();
+ final Player player = WinboardFactory.getPlayer();
final Listener onMoveListener = new MoveListener( player );
2  src/main/java/com/leokom/chess/gui/winboard/
@@ -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
//this may damage Winboard behaviour. The easiest way to fix it is to redirect System.out, 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.