From e8b76e8b73c1df2595b710694b740cf627f10a86 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Thu, 16 Feb 2023 21:26:46 +0700 Subject: [PATCH 1/2] added table in index.jsp --- .idea/.gitignore | 8 ++++++++ .idea/encodings.xml | 7 +++++++ .idea/misc.xml | 15 +++++++++++++++ .idea/sonarlint/issuestore/index.pb | 0 .idea/vcs.xml | 6 ++++++ src/main/webapp/index.jsp | 17 +++++++++++++++++ 6 files changed, 53 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/encodings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/sonarlint/issuestore/index.pb create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 00000000..aa00ffab --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..b16964c9 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 00000000..e69de29b diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 964cc071..d85a6993 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -7,6 +7,23 @@

Tic-Tac-Toe

+ + + + + + + + + + + + + + + + +
012
345
678
+ Tic-Tac-Toe

Tic-Tac-Toe

- - - + + + - - - + + + - - - + + +
012${data.get(0).getSign()}${data.get(1).getSign()}${data.get(2).getSign()}
345${data.get(3).getSign()}${data.get(4).getSign()}${data.get(5).getSign()}
678${data.get(6).getSign()}${data.get(7).getSign()}${data.get(8).getSign()}
+
+ + + +

CROSSES WIN!

+ +
+ +

NOUGHTS WIN!

+ +
+ +

IT'S A DRAW

+
+ +
diff --git a/src/main/webapp/static/main.css b/src/main/webapp/static/main.css index e69de29b..b2debc92 100644 --- a/src/main/webapp/static/main.css +++ b/src/main/webapp/static/main.css @@ -0,0 +1,11 @@ +td { + border: 3px solid black; + padding: 10px; + border-collapse: separate; + margin: 10px; + width: 100px; + height: 100px; + font-size: 50px; + text-align: center; + empty-cells: show; +}