package Ġcom . example . cool chess čĊč Ċ import Ġorg . junit . Test č Ċ import Ġorg . junit . Assert .* čĊč Ċ class ĠKing UnitTest Ġ{ čĊčĊĠĠĠ Ġ@ Test čĊĠĠĠ Ġfun Ġbasic King Move _ single Piece () Ġ{ čĊĠĠĠĠĠĠĠ ĠChe ss Game . clear () čĊĠĠĠĠĠĠĠ ĠChe ss Game . add Piece ( Che ss Piece ( 3 , Ġ 3 , ĠPlayer . WHITE , ĠChe ss man . K ING , Ġ- 1 )) čĊĠĠĠĠĠĠĠ Ġprintln ( Che ss Game ) čĊčĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 2 , Ġ 2 ))) čĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 2 , Ġ 3 ))) čĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 2 , Ġ 4 ))) čĊčĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 4 , Ġ 2 ))) čĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 4 , Ġ 3 ))) čĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 4 , Ġ 4 ))) čĊčĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 3 , Ġ 2 ))) čĊĠĠĠĠĠĠĠ ĠassertTrue ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 3 , Ġ 4 ))) čĊčĊĠĠĠĠĠĠĠ ĠassertFalse ( Che ss Game . can Move ( Square ( 3 , Ġ 3 ), ĠSquare ( 5 , Ġ 3 ))) čĊĠĠĠ Ġ} č Ċ }