Permalink
Browse files

Fixed spelling

  • Loading branch information...
1 parent 875f6fd commit bb503d6c47ea1442e84b75a9446a3b6303742357 @lrozenblyum committed Dec 15, 2012
@@ -55,7 +55,7 @@ public void onPlayerMoved( String move ) {
anotherPlayer.onPlayerMoved( "d2d4" );
//NOTE: interesting to implement - how much do we need to wait for result?
//NOTE2: it's not recommended way to offer draw after the move.
- anotherPlayer.onDrawOfferred();
+ anotherPlayer.onDrawOffered();
break;
default:
anotherPlayer.onResigned();
@@ -4,6 +4,6 @@
* Author: Leonid
* Date-time: 26.11.12 22:46
*/
-public interface DrawOfferredListener {
- void onDrawOfferred();
+public interface DrawOfferedListener {
+ void onDrawOffered();
}
@@ -6,7 +6,7 @@
* (independent of the fact the player is represented by a chess engine,
* a human or a winboard-protocol )
*/
-public interface Player extends PlayerMovedListener, DrawOfferredListener, ResignListener {
+public interface Player extends PlayerMovedListener, DrawOfferedListener, ResignListener {
//may create attach - now it's over-projecting - 1 is OK
//TODO: rename to new vision
void setOnMoveListener( PlayerMovedListener playerMovedListenerToSet );
@@ -16,7 +16,7 @@
* Date-time: 10.11.12 21:22
*/
class WinboardCommanderImpl implements WinboardCommander {
- private Communicator communicator;
+ private final Communicator communicator;
private ProtoverListener protoverListener;
private QuitListener quitListener;
private GoListener goListener;
@@ -110,7 +110,7 @@ public void onPlayerMoved( String move ) {
}
@Override
- public void onDrawOfferred() {
+ public void onDrawOffered() {
commander.offerDraw();
}

0 comments on commit bb503d6

Please sign in to comment.