package es.ucm.fdi.tp.control;

import java.util.List;

import es.ucm.fdi.tp.basecode.bgame.control.Player;
import es.ucm.fdi.tp.basecode.bgame.model.Board;
import es.ucm.fdi.tp.basecode.bgame.model.GameMove;
import es.ucm.fdi.tp.basecode.bgame.model.GameRules;
import es.ucm.fdi.tp.basecode.bgame.model.Piece;

public class SwingPlayer extends Player{

	/**
	 * 
	 */
	private static final long serialVersionUID = -257722318128195740L;

	@Override
	public GameMove requestMove(Piece p, Board board, List<Piece> pieces, GameRules rules) {
		// TODO Auto-generated method stub
		return null;
	}
	
	private void setMove(){
		
	}

}

@@ -358,31 +358,14 @@
 ayer
+ 
 %7B%0D%0A%0D%0A
-%09/**%0D%0A%09 * %0D%0A%09 */%0D%0A
 %09pri
@@ -429,16 +429,74 @@
 5740L;%0D%0A
+%09%0D%0A%09private GameMove move;%0D%0A%09%0D%0A%09public SwingPlayer() %7B%7D%0D%0A%09
 %0D%0A%09@Over
@@ -598,90 +598,186 @@
 %0D%0A%09%09
-// TODO Auto-generated method stub%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%09%0D%0A%09private void s
+if(p.equals(move.getPiece()) %7B%0D%0A%09%09%09return this.move;%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%09%0D%0A%09public void setMove(GameMove newMove) %7B%0D%0A%09%09this.move = move;%0D%0A%09%7D%0D%0A%09%0D%0A%09public GameMove g
 etMove()
 %7B%0D%0A%09
@@ -772,21 +772,39 @@
 etMove()
+ 
 %7B%0D%0A%09%09
+return this.move;
 %0D%0A%09%7D%0D%0A%0D%0A

Add one swing player to rule them all