lahdsfladjh

This commit is contained in:
Jacob Signorovitch
2025-05-19 09:04:53 -04:00
parent f982a48875
commit efd742ce83

View File

@@ -1,5 +1,6 @@
package chess;
import java.awt.Color;
import javalib.impworld.*;
import javalib.worldimages.*;
@@ -36,7 +37,17 @@ class Game extends World {
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() {
this.board.board.put(new Coord(0, 0), new Rook(Util.Col.BLACK));