From 7384aa95142da374df89846562e4179aac9e0e2a Mon Sep 17 00:00:00 2001 From: Zhelovanov_Dmitrii Date: Thu, 22 Dec 2022 22:01:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'FormParameterClass.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FormParameterClass.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FormParameterClass.java b/FormParameterClass.java index c4c3d06..4b07de1 100644 --- a/FormParameterClass.java +++ b/FormParameterClass.java @@ -27,8 +27,8 @@ public class FormParameterClass extends JComponent { Random random = new Random(); int[] arrayBlocks = {2, 4, 6}; if (parameterClass == null) { - parameterClass = new MyParametrClass(5, 5); - for (int i = 0; i < 5; i ++) { + parameterClass = new MyParametrClass(20, 20); + for (int i = 0; i < 20; i ++) { if (random.nextBoolean()) { parameterClass.Insert(new EntityBattleship(random.nextInt(100), random.nextInt(100), new Color(random.nextInt(255),random.nextInt(255),random.nextInt(255)))); @@ -40,7 +40,7 @@ public class FormParameterClass extends JComponent { random.nextBoolean(), random.nextBoolean())); } } - for (int i = 0; i < 5; i ++) { + for (int i = 0; i < 20; i ++) { int rnd = random.nextInt(3); switch (rnd) {