{"id":362153,"date":"2024-05-21T01:28:48","date_gmt":"2024-05-21T01:28:48","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=362153"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=362153","title":{"rendered":"<span>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0430\u044f \u0438\u0433\u0440\u0430 \u00ab\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438\u00bb \u043d\u0430 ChatGPT, \u0437\u0435\u0440\u043e\u043a\u043e\u0434\u0438\u043d\u0433<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435:<\/h2>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c <strong>ChatGPT3<\/strong>. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/39e\/4cd\/918\/39e4cd9180ade4b3caebd73a3cafcd11.png\" width=\"2503\" height=\"803\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/39e\/4cd\/918\/39e4cd9180ade4b3caebd73a3cafcd11.png\"\/><\/figure>\n<h2>\u041f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438:<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u043e\u0439 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187;. \u0426\u0435\u043b\u044c \u0438\u0433\u0440\u044b &#8212; \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439, \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u044f\u0434 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0431\u0443\u0434\u044c \u0442\u043e \u043a\u0440\u0435\u0441\u0442\u0438\u043a\u0438 (X) \u0438\u043b\u0438 \u043d\u043e\u043b\u0438\u043a\u0438 (O). \u0418\u0433\u0440\u043e\u043a\u0438 \u0447\u0435\u0440\u0435\u0434\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043d\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435. \u0418\u0433\u0440\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0438\u0447\u044c\u044f.  <\/p>\n<h2>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 ChatGPT :<\/h2>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u044b \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>HTML<\/em> \u0438 <em>JavaScript<\/em>. \u041c\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0442\u043a\u0438 \u0438\u0437 9 \u043a\u043b\u0435\u0442\u043e\u043a. \u0418\u0433\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/p>\n<blockquote>\n<p>&#171;\u0422\u044b \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u0438\u0433\u0440 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <em>HTML<\/em> \u0438 <em>JavaScript<\/em>. \u041d\u0430\u043f\u0438\u0448\u0438 \u043a\u043e\u0434 \u0434\u043b\u044f \u0438\u0433\u0440\u044b &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u0432 \u0432\u0438\u0434\u0435 <em>landing<\/em>-\u0441\u0430\u0439\u0442\u0430. \u041a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b\u043c \u0438 \u043f\u043e\u043b\u043d\u044b\u043c&#187;<\/p>\n<\/blockquote>\n<details class=\"spoiler\">\n<summary>ChatGPT \u0432\u044b\u0432\u0435\u043b \u043c\u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0439* \u043a\u043e\u0434, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html> &lt;head>     &lt;title>\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u043d\u043e\u043b\u0438\u043a\u0438&lt;\/title>     &lt;style>         .game {             display: flex;             justify-content: center;             align-items: center;             height: 100vh;         }          .board {             display: grid;             grid-template-columns: repeat(3, 100px);             grid-template-rows: repeat(3, 100px);             gap: 10px;         }          .cell {             display: flex;             justify-content: center;             align-items: center;             font-size: 48px;             font-weight: bold;             color: #333;             background: #eee;             cursor: pointer;             transition: background 0.3s ease;         }          .cell:hover {             background: #ddd;         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"game\">         &lt;div class=\"board\">             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>         &lt;\/div>     &lt;\/div>      &lt;script>         const board = document.querySelector(\".board\");         const cells = Array.from(document.querySelectorAll(\".cell\"));         const winningCombinations = [             [0, 1, 2],             [3, 4, 5],             [6, 7, 8],             [0, 3, 6],             [1, 4, 7],             [2, 5, 8],             [0, 4, 8],             [2, 4, 6]         ];          let currentPlayer = \"X\";         let gameOver = false;          function checkWin() {             for (let i = 0; i &lt; winningCombinations.length; i++) {                 const [a, b, c] = winningCombinations[i];                 if (                     cells[a].innerText &amp;&amp;                     cells[a].innerText === cells[b].innerText &amp;&amp;                     cells[a].innerText === cells[c].innerText                 ) {                     return true;                 }             }             return false;         }          function handleClick(event) {             const cell = event.target;             const index = cells.indexOf(cell);              if (cell.innerText || gameOver) {                 return;             }              cell.innerText = currentPlayer;             cell.style.color = currentPlayer === \"X\" ? \"blue\" : \"red\";              if (checkWin()) {                 gameOver = true;                 setTimeout(() => {                     alert(`\u0418\u0433\u0440\u043e\u043a ${currentPlayer} \u043f\u043e\u0431\u0435\u0434\u0438\u043b!`);                 }, 100);                 return;             }              if (cells.every(cell => cell.innerText)) {                 gameOver = true;                 setTimeout(() => {                     alert(\"\u041d\u0438\u0447\u044c\u044f!\");                 }, 100);                 return;             }              currentPlayer = currentPlayer === \"X\" ? \"O\" : \"X\";         }          board.addEventListener(\"click\", handleClick);     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/85c\/3ce\/812\/85c3ce812af3323432d6757b1d725588.png\" alt=\"\u0412\u044b\u0432\u043e\u0434 \u21161\" title=\"\u0412\u044b\u0432\u043e\u0434 \u21161\" width=\"706\" height=\"547\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/85c\/3ce\/812\/85c3ce812af3323432d6757b1d725588.png\"\/><\/p>\n<div><figcaption>\u0412\u044b\u0432\u043e\u0434 \u21161<\/figcaption><\/div>\n<\/figure>\n<p>ChatGPT \u0432\u044b\u0434\u0430\u043b \u043c\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434 \u0438\u0433\u0440\u044b \u0432 \u0441\u0432\u0435\u0442\u043b\u044b\u0445 \u0442\u043e\u043d\u0430\u0445. \u041e\u0434\u043d\u0430\u043a\u043e, \u044f \u0445\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0434\u043b\u044f \u0442\u0435\u043c\u043d\u043e\u0439 \u0442\u0435\u043c\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041f\u043e\u043f\u0440\u043e\u0441\u0438\u043c <em>ChatGPT<\/em> &#171;\u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u043e\u0434 \u0442\u0435\u043c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430&#187;, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c &#171;\u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043d\u0430\u0434\u043f\u0438\u0441\u044c &#171;<em>Welcome to<\/em> <em>Tic Tac Toe<\/em>!&#187; \u0431\u0435\u043b\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u043d\u0430\u0434 \u0438\u0433\u0440\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u0435\u043c, \u0448\u0440\u0438\u0444\u0442\u043e\u043c <em>Times New Roman<\/em>&#171;.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/h2>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/460\/3b0\/a11\/4603b0a11464909a6c22618ea73bcdc7.png\" alt=\"\u0412\u044b\u0432\u043e\u0434 \u21162\" title=\"\u0412\u044b\u0432\u043e\u0434 \u21162\" width=\"1192\" height=\"941\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/460\/3b0\/a11\/4603b0a11464909a6c22618ea73bcdc7.png\"\/><\/p>\n<div><figcaption>\u0412\u044b\u0432\u043e\u0434 \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0437\u0435\u0440\u043e\u043a\u043e\u0434\u0438\u043d\u0433, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c <em>ChatGPT<\/em>. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0438\u0433\u0440\u044b \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c. <\/p>\n<p>\u042f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u043c\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u0441\u044f \u0432\u0432\u0438\u0434\u0443 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u044b. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, <em>ChatGPT3<\/em> \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0435\u0435 &#171;\u0437\u043c\u0435\u0439\u043a\u0438&#187; \u0438\u043b\u0438 &#171;\u0441\u0430\u043f\u0451\u0440\u0430&#187;, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u0435\u0439 \u043a\u043e\u0434\u0430.<\/p>\n<p>\u0421\u043d\u0438\u0437\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d <strong>\u043a\u043e\u0434<\/strong> \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0433\u0440\u044b:<\/p>\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html> &lt;head>     &lt;title>\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u043d\u043e\u043b\u0438\u043a\u0438&lt;\/title>     &lt;style>         h1 {             font-family: \"Times New Roman\", serif         }         :root {             --background-color: #111;             --cell-background: #D2D2D2;             --cell-color: #eee;             --cell-hover-color: #ddd;             --x-color: #437FB1;             --o-color: #DA0038;             --win-color: #00ff00;             --text-color: #fff;         }          body {             background-color: var(--background-color);             margin: 0;             padding: 0;         }          .game {             display: flex;             justify-content: center;             align-items: center;             flex-direction: column;             height: 100vh;         }          .board {             display: grid;              grid-template-columns: repeat(3, 180px);              grid-template-rows: repeat(3, 180px);              gap: 1px;           }          .cell {             display: flex;             justify-content: center;             align-items: center;             font-size: 48px;             font-weight: bold;             color: var(--cell-color);             background: var(--cell-background);             cursor: pointer;             transition: background 0.3s ease;         }          .cell:hover {             background: var(--cell-hover-color);         }          .win {             color: var(--win-color);         }          .title {             font-size: 48px;             font-weight: bold;             color: #D2D2D2;             margin-bottom: 20px;         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"game\">         &lt;h1 class=\"title\">Welcome to Tic Tac Toe!&lt;\/h1>         &lt;div class=\"board\">             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>         &lt;\/div>     &lt;\/div>      &lt;script>         const board = document.querySelector(\".board\");         const cells = Array.from(document.querySelectorAll(\".cell\"));         const winningCombinations = [             [0, 1, 2],             [3, 4, 5],             [6, 7, 8],             [0, 3, 6],             [1, 4, 7],             [2, 5, 8],             [0, 4, 8],             [2, 4, 6]         ];          let currentPlayer = \"X\";         let gameOver = false;          function checkWin() {             for (let i = 0; i &lt; winningCombinations.length; i++) {                 const [a, b, c] = winningCombinations[i];                 if (                     cells[a].innerText &amp;&amp;                     cells[a].innerText === cells[b].innerText &amp;&amp;                     cells[a].innerText === cells[c].innerText                 ) {                     cells[a].classList.add(\"win\");                     cells[b].classList.add(\"win\");                     cells[c].classList.add(\"win\");                     return true;                 }             }             return false;         }          function handleClick(event) {             const cell = event.target;             const index = cells.indexOf(cell);              if (cell.innerText || gameOver) {                 return;             }              cell.innerText = currentPlayer;             cell.style.color = currentPlayer === \"X\" ? \"var(--x-color)\" : \"var(--o-color)\";              if (checkWin()) {                 gameOver = true;                 setTimeout(() => {                     alert(`\u0418\u0433\u0440\u043e\u043a ${currentPlayer} \u043f\u043e\u0431\u0435\u0434\u0438\u043b!`);                 }, 100);                 return;             }              if (cells.every(cell => cell.innerText)) {                 gameOver = true;                 setTimeout(() => {                     alert(\"\u041d\u0438\u0447\u044c\u044f!\");                 }, 100);                 return;             }              currentPlayer = currentPlayer === \"X\" ? \"O\" : \"X\";          }          board.addEventListener(\"click\", handleClick);     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/778742\/\"> https:\/\/habr.com\/ru\/articles\/778742\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435:<\/h2>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c <strong>ChatGPT3<\/strong>. <\/p>\n<figure class=\"full-width\"><\/figure>\n<h2>\u041f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0438:<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u043e\u0439 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187;. \u0426\u0435\u043b\u044c \u0438\u0433\u0440\u044b &#8212; \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439, \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u044f\u0434 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0431\u0443\u0434\u044c \u0442\u043e \u043a\u0440\u0435\u0441\u0442\u0438\u043a\u0438 (X) \u0438\u043b\u0438 \u043d\u043e\u043b\u0438\u043a\u0438 (O). \u0418\u0433\u0440\u043e\u043a\u0438 \u0447\u0435\u0440\u0435\u0434\u0443\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043d\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u043a\u043b\u0435\u0442\u043a\u0438 \u043d\u0430 \u0438\u0433\u0440\u043e\u0432\u043e\u043c \u043f\u043e\u043b\u0435. \u0418\u0433\u0440\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043d\u0438\u0447\u044c\u044f.  <\/p>\n<h2>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 ChatGPT :<\/h2>\n<p>\u0414\u043b\u044f \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0433\u0440\u044b \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>HTML<\/em> \u0438 <em>JavaScript<\/em>. \u041c\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0438\u0433\u0440\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0442\u043a\u0438 \u0438\u0437 9 \u043a\u043b\u0435\u0442\u043e\u043a. \u0418\u0433\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u0432, \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/p>\n<blockquote>\n<p>&#171;\u0422\u044b \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0438 \u0438\u0433\u0440 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <em>HTML<\/em> \u0438 <em>JavaScript<\/em>. \u041d\u0430\u043f\u0438\u0448\u0438 \u043a\u043e\u0434 \u0434\u043b\u044f \u0438\u0433\u0440\u044b &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u0432 \u0432\u0438\u0434\u0435 <em>landing<\/em>-\u0441\u0430\u0439\u0442\u0430. \u041a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b\u043c \u0438 \u043f\u043e\u043b\u043d\u044b\u043c&#187;<\/p>\n<\/blockquote>\n<details class=\"spoiler\">\n<summary>ChatGPT \u0432\u044b\u0432\u0435\u043b \u043c\u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0439* \u043a\u043e\u0434, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0434\u043b\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html> &lt;head>     &lt;title>\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u043d\u043e\u043b\u0438\u043a\u0438&lt;\/title>     &lt;style>         .game {             display: flex;             justify-content: center;             align-items: center;             height: 100vh;         }          .board {             display: grid;             grid-template-columns: repeat(3, 100px);             grid-template-rows: repeat(3, 100px);             gap: 10px;         }          .cell {             display: flex;             justify-content: center;             align-items: center;             font-size: 48px;             font-weight: bold;             color: #333;             background: #eee;             cursor: pointer;             transition: background 0.3s ease;         }          .cell:hover {             background: #ddd;         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"game\">         &lt;div class=\"board\">             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>         &lt;\/div>     &lt;\/div>      &lt;script>         const board = document.querySelector(\".board\");         const cells = Array.from(document.querySelectorAll(\".cell\"));         const winningCombinations = [             [0, 1, 2],             [3, 4, 5],             [6, 7, 8],             [0, 3, 6],             [1, 4, 7],             [2, 5, 8],             [0, 4, 8],             [2, 4, 6]         ];          let currentPlayer = \"X\";         let gameOver = false;          function checkWin() {             for (let i = 0; i &lt; winningCombinations.length; i++) {                 const [a, b, c] = winningCombinations[i];                 if (                     cells[a].innerText &amp;&amp;                     cells[a].innerText === cells[b].innerText &amp;&amp;                     cells[a].innerText === cells[c].innerText                 ) {                     return true;                 }             }             return false;         }          function handleClick(event) {             const cell = event.target;             const index = cells.indexOf(cell);              if (cell.innerText || gameOver) {                 return;             }              cell.innerText = currentPlayer;             cell.style.color = currentPlayer === \"X\" ? \"blue\" : \"red\";              if (checkWin()) {                 gameOver = true;                 setTimeout(() => {                     alert(`\u0418\u0433\u0440\u043e\u043a ${currentPlayer} \u043f\u043e\u0431\u0435\u0434\u0438\u043b!`);                 }, 100);                 return;             }              if (cells.every(cell => cell.innerText)) {                 gameOver = true;                 setTimeout(() => {                     alert(\"\u041d\u0438\u0447\u044c\u044f!\");                 }, 100);                 return;             }              currentPlayer = currentPlayer === \"X\" ? \"O\" : \"X\";         }          board.addEventListener(\"click\", handleClick);     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<figure class=\"float full-width\">\n<div><figcaption>\u0412\u044b\u0432\u043e\u0434 \u21161<\/figcaption><\/div>\n<\/figure>\n<p>ChatGPT \u0432\u044b\u0434\u0430\u043b \u043c\u043d\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434 \u0438\u0433\u0440\u044b \u0432 \u0441\u0432\u0435\u0442\u043b\u044b\u0445 \u0442\u043e\u043d\u0430\u0445. \u041e\u0434\u043d\u0430\u043a\u043e, \u044f \u0445\u043e\u0447\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0434\u043b\u044f \u0442\u0435\u043c\u043d\u043e\u0439 \u0442\u0435\u043c\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u041f\u043e\u043f\u0440\u043e\u0441\u0438\u043c <em>ChatGPT<\/em> &#171;\u043f\u043e\u0434\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u043e\u0434 \u0442\u0435\u043c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430&#187;, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c &#171;\u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043d\u0430\u0434\u043f\u0438\u0441\u044c &#171;<em>Welcome to<\/em> <em>Tic Tac Toe<\/em>!&#187; \u0431\u0435\u043b\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u043d\u0430\u0434 \u0438\u0433\u0440\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u0435\u043c, \u0448\u0440\u0438\u0444\u0442\u043e\u043c <em>Times New Roman<\/em>&#171;.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/h2>\n<figure class=\"float full-width\">\n<div><figcaption>\u0412\u044b\u0432\u043e\u0434 \u21162<\/figcaption><\/div>\n<\/figure>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u041d\u043e\u043b\u0438\u043a\u0438&#187; \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0437\u0435\u0440\u043e\u043a\u043e\u0434\u0438\u043d\u0433, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c <em>ChatGPT<\/em>. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0438\u0433\u0440\u044b \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c. <\/p>\n<p>\u042f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u043c\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442 \u0443\u0434\u0430\u043b\u0441\u044f \u0432\u0432\u0438\u0434\u0443 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0439 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u044b. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, <em>ChatGPT3<\/em> \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0435\u0435 &#171;\u0437\u043c\u0435\u0439\u043a\u0438&#187; \u0438\u043b\u0438 &#171;\u0441\u0430\u043f\u0451\u0440\u0430&#187;, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u043c\u043e\u0449\u0438 \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u0435\u0439 \u043a\u043e\u0434\u0430.<\/p>\n<p>\u0421\u043d\u0438\u0437\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d <strong>\u043a\u043e\u0434<\/strong> \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u0433\u0440\u044b:<\/p>\n<pre><code class=\"xml\">&lt;!DOCTYPE html> &lt;html> &lt;head>     &lt;title>\u041a\u0440\u0435\u0441\u0442\u0438\u043a\u0438-\u043d\u043e\u043b\u0438\u043a\u0438&lt;\/title>     &lt;style>         h1 {             font-family: \"Times New Roman\", serif         }         :root {             --background-color: #111;             --cell-background: #D2D2D2;             --cell-color: #eee;             --cell-hover-color: #ddd;             --x-color: #437FB1;             --o-color: #DA0038;             --win-color: #00ff00;             --text-color: #fff;         }          body {             background-color: var(--background-color);             margin: 0;             padding: 0;         }          .game {             display: flex;             justify-content: center;             align-items: center;             flex-direction: column;             height: 100vh;         }          .board {             display: grid;              grid-template-columns: repeat(3, 180px);              grid-template-rows: repeat(3, 180px);              gap: 1px;           }          .cell {             display: flex;             justify-content: center;             align-items: center;             font-size: 48px;             font-weight: bold;             color: var(--cell-color);             background: var(--cell-background);             cursor: pointer;             transition: background 0.3s ease;         }          .cell:hover {             background: var(--cell-hover-color);         }          .win {             color: var(--win-color);         }          .title {             font-size: 48px;             font-weight: bold;             color: #D2D2D2;             margin-bottom: 20px;         }     &lt;\/style> &lt;\/head> &lt;body>     &lt;div class=\"game\">         &lt;h1 class=\"title\">Welcome to Tic Tac Toe!&lt;\/h1>         &lt;div class=\"board\">             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>             &lt;div class=\"cell\">&lt;\/div>         &lt;\/div>     &lt;\/div>      &lt;script>         const board = document.querySelector(\".board\");         const cells = Array.from(document.querySelectorAll(\".cell\"));         const winningCombinations = [             [0, 1, 2],             [3, 4, 5],             [6, 7, 8],             [0, 3, 6],             [1, 4, 7],             [2, 5, 8],             [0, 4, 8],             [2, 4, 6]         ];          let currentPlayer = \"X\";         let gameOver = false;          function checkWin() {             for (let i = 0; i &lt; winningCombinations.length; i++) {                 const [a, b, c] = winningCombinations[i];                 if (                     cells[a].innerText &amp;&amp;                     cells[a].innerText === cells[b].innerText &amp;&amp;                     cells[a].innerText === cells[c].innerText                 ) {                     cells[a].classList.add(\"win\");                     cells[b].classList.add(\"win\");                     cells[c].classList.add(\"win\");                     return true;                 }             }             return false;         }          function handleClick(event) {             const cell = event.target;             const index = cells.indexOf(cell);              if (cell.innerText || gameOver) {                 return;             }              cell.innerText = currentPlayer;             cell.style.color = currentPlayer === \"X\" ? \"var(--x-color)\" : \"var(--o-color)\";              if (checkWin()) {                 gameOver = true;                 setTimeout(() => {                     alert(`\u0418\u0433\u0440\u043e\u043a ${currentPlayer} \u043f\u043e\u0431\u0435\u0434\u0438\u043b!`);                 }, 100);                 return;             }              if (cells.every(cell => cell.innerText)) {                 gameOver = true;                 setTimeout(() => {                     alert(\"\u041d\u0438\u0447\u044c\u044f!\");                 }, 100);                 return;             }              currentPlayer = currentPlayer === \"X\" ? \"O\" : \"X\";          }          board.addEventListener(\"click\", handleClick);     &lt;\/script> &lt;\/body> &lt;\/html><\/code><\/pre>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/778742\/\"> https:\/\/habr.com\/ru\/articles\/778742\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-362153","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362153"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362153\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}