diff --git a/GameUI.java b/GameUI.java index 1ab4c6990daa1066bf0799ab87278be96a20892a..4298bf1948cdc9f3359cf2ca81ec85f7e3a8b936 100644 --- a/GameUI.java +++ b/GameUI.java @@ -17,7 +17,9 @@ public class GameUI extends Application{ private Label scoreLabelO= new Label("Player O: 0"); private Button[] buttons = new Button[9]; - /**Random for Images */ + /** + * Random for Images + */ Random rnd = new Random(); /** @@ -138,7 +140,7 @@ public class GameUI extends Application{ board.setTileOwner(index, currentPlayer); //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() : getClass().getResource("/textures/0_" + i + ".png").toExternalForm(); Image image = new Image(""+ imageSymbols); diff --git a/textures/0_3.png b/textures/0_3.png new file mode 100644 index 0000000000000000000000000000000000000000..51e6bb74a7e37f7e6dbae3af02672bd34a345c17 Binary files /dev/null and b/textures/0_3.png differ diff --git a/textures/0_4.png b/textures/0_4.png new file mode 100644 index 0000000000000000000000000000000000000000..b8568f5685992b4738eeccd8806f90916ed1f5a5 Binary files /dev/null and b/textures/0_4.png differ diff --git a/textures/0_5.png b/textures/0_5.png new file mode 100644 index 0000000000000000000000000000000000000000..cfe96a65c36bb42a26930c76bf1edbc7d9fb1bdc Binary files /dev/null and b/textures/0_5.png differ diff --git a/textures/0_6.png b/textures/0_6.png new file mode 100644 index 0000000000000000000000000000000000000000..296043006294dc3b846ccf40c357d59a05a66fb6 Binary files /dev/null and b/textures/0_6.png differ diff --git a/textures/0_7.png b/textures/0_7.png new file mode 100644 index 0000000000000000000000000000000000000000..de3128c68e94d915495ddd3f638048d63a442619 Binary files /dev/null and b/textures/0_7.png differ diff --git a/textures/0_8.png b/textures/0_8.png new file mode 100644 index 0000000000000000000000000000000000000000..8d27368d91382adbcf9868798df5be08e70a917b Binary files /dev/null and b/textures/0_8.png differ diff --git a/textures/0_9.png b/textures/0_9.png new file mode 100644 index 0000000000000000000000000000000000000000..530cdebbbd5c5cbc3d6d9dde00b3a4510d1101a3 Binary files /dev/null and b/textures/0_9.png differ diff --git a/textures/1_3.png b/textures/1_3.png new file mode 100644 index 0000000000000000000000000000000000000000..f49952e4cba0ea08065d6b77909ef3615305e5eb Binary files /dev/null and b/textures/1_3.png differ diff --git a/textures/1_4.png b/textures/1_4.png new file mode 100644 index 0000000000000000000000000000000000000000..9cc2e0a2554c4db80333453074bb792496acc116 Binary files /dev/null and b/textures/1_4.png differ diff --git a/textures/1_5.png b/textures/1_5.png new file mode 100644 index 0000000000000000000000000000000000000000..afcfc45c63150bae846ff56cdeda2c23f07bf168 Binary files /dev/null and b/textures/1_5.png differ diff --git a/textures/1_6.png b/textures/1_6.png new file mode 100644 index 0000000000000000000000000000000000000000..4eca7ce37af5b0156d2fc99efe91213bf7a1100d Binary files /dev/null and b/textures/1_6.png differ diff --git a/textures/1_7.png b/textures/1_7.png new file mode 100644 index 0000000000000000000000000000000000000000..23fb3b8e09968f0c26049178abb4d795a304936e Binary files /dev/null and b/textures/1_7.png differ diff --git a/textures/1_8.png b/textures/1_8.png new file mode 100644 index 0000000000000000000000000000000000000000..a5706ee07ec6685f743fcd3af1d4a9e68a430a56 Binary files /dev/null and b/textures/1_8.png differ diff --git a/textures/1_9.png b/textures/1_9.png new file mode 100644 index 0000000000000000000000000000000000000000..59476b7b67d2a9af90e79336c612445d83f68c32 Binary files /dev/null and b/textures/1_9.png differ diff --git a/textures/Icons.xcf b/textures/Icons.xcf new file mode 100644 index 0000000000000000000000000000000000000000..bc63457298f2b9c69f0012fc32f612a458e15d96 Binary files /dev/null and b/textures/Icons.xcf differ