Skip to content
Snippets Groups Projects
Commit 082f8037 authored by Josua Oppermann's avatar Josua Oppermann
Browse files

added more Pictures

parent 4dcc0399
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,9 @@ public class GameUI extends Application{ ...@@ -17,7 +17,9 @@ public class GameUI extends Application{
private Label scoreLabelO= new Label("Player O: 0"); private Label scoreLabelO= new Label("Player O: 0");
private Button[] buttons = new Button[9]; private Button[] buttons = new Button[9];
/**Random for Images */ /**
* Random for Images
*/
Random rnd = new Random(); Random rnd = new Random();
/** /**
...@@ -138,7 +140,7 @@ public class GameUI extends Application{ ...@@ -138,7 +140,7 @@ public class GameUI extends Application{
board.setTileOwner(index, currentPlayer); board.setTileOwner(index, currentPlayer);
//replace symbols with images //replace symbols with images
int i = rnd.nextInt(3); int i = rnd.nextInt(10);
String imageSymbols = currentPlayer == 0 ? getClass().getResource("/textures/1_" + i + ".png").toExternalForm() : String imageSymbols = currentPlayer == 0 ? getClass().getResource("/textures/1_" + i + ".png").toExternalForm() :
getClass().getResource("/textures/0_" + i + ".png").toExternalForm(); getClass().getResource("/textures/0_" + i + ".png").toExternalForm();
Image image = new Image(""+ imageSymbols); Image image = new Image(""+ imageSymbols);
......
textures/0_3.png

13.2 KiB

textures/0_4.png

14.6 KiB

textures/0_5.png

12.4 KiB

textures/0_6.png

13.9 KiB

textures/0_7.png

15.8 KiB

textures/0_8.png

13.5 KiB

textures/0_9.png

14.7 KiB

textures/1_3.png

10.8 KiB

textures/1_4.png

10.4 KiB

textures/1_5.png

9.97 KiB

textures/1_6.png

14.8 KiB

textures/1_7.png

9.68 KiB

textures/1_8.png

10.7 KiB

textures/1_9.png

11.1 KiB

File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment