lahdsfladjh
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package chess;
|
package chess;
|
||||||
|
|
||||||
|
import java.awt.Color;
|
||||||
import javalib.impworld.*;
|
import javalib.impworld.*;
|
||||||
import javalib.worldimages.*;
|
import javalib.worldimages.*;
|
||||||
|
|
||||||
@@ -36,7 +37,17 @@ class Game extends World {
|
|||||||
this.bigBang(Util.boardW * Util.scale, Util.boardW * Util.scale, 0.01);
|
this.bigBang(Util.boardW * Util.scale, Util.boardW * Util.scale, 0.01);
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw() { this.scene = this.board.draw(); }
|
void draw() {
|
||||||
|
this.scene = this.board.draw();
|
||||||
|
this.scene.placeImageXY(
|
||||||
|
new TextImage(
|
||||||
|
(this.activeActor.equals(this.white) ? "white" : "black") +
|
||||||
|
"'s turn",
|
||||||
|
Util.scale / 2, Color.red
|
||||||
|
),
|
||||||
|
Util.scale * 2, 3 * Util.scale
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
this.board.board.put(new Coord(0, 0), new Rook(Util.Col.BLACK));
|
this.board.board.put(new Coord(0, 0), new Rook(Util.Col.BLACK));
|
||||||
|
Reference in New Issue
Block a user