{"id":485440,"date":"2026-06-29T11:15:51","date_gmt":"2026-06-29T11:15:51","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=485440"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=485440","title":{"rendered":"\u0421\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0445\u0435\u043c \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u0433\u0435\u0439\u0442\u0430\u043c\u0438 \u043d\u0430 Lua"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0433\u0435\u0439\u0442\u043e\u0432 \u0438\u043b\u0438 \u0432\u0435\u043d\u0442\u0438\u043b\u0435\u0439 \u043d\u0430 \u0421++ (sfml \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0438 + sol2 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u043b\u0443\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u0443\u0430 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: &#171;`<\/p>\n<pre><code class=\"lua\">local gate = {}gate.inputCount = 2gate.outputCount = 1function gate.update(inputs)    local a = inputs[1] or false    local b = inputs[2] or false    local result = a and b        return { result }endreturn gate<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0433\u0435\u0439\u0442 \u0438 (\u041a\u043e\u0433\u0434\u0430 2 \u0432\u0445\u043e\u0434\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0432\u044b\u0445\u043e\u0434 \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f true, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u0442\u043e \u0440\u0430\u0432\u0435\u043d false.). \u0418 \u0442\u0430\u043a-\u0436\u0435 \u0431\u0438\u043d\u0434\u044b \u0433\u0435\u0439\u0442\u043e\u0432 \u043a \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c: <\/p>\n<p>&#171;`<\/p>\n<pre><code class=\"lua\">local binds = {    [\"Num1\"] = \"scripts\/gates\/and.lua\",    [\"Num2\"] = \"scripts\/gates\/or.lua\",    [\"Num3\"] = \"scripts\/gates\/xor.lua\",    [\"Num4\"] = \"scripts\/gates\/not.lua\",    [\"Num5\"] = \"scripts\/gates\/halfadder.lua\"}return binds<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f \u0431\u0438\u043d\u0434\u0430 \u043a\u043b\u0430\u0432\u0438\u0448 \u0432\u0430\u043c \u043b\u0438\u0448\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u0443 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0438 \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430 \u043b\u0443\u0430.  <\/p>\n<p>\u0422\u0430\u043a-\u0436\u0435 \u043c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0441\u043c\u043e\u0433\u0443 \u043b\u0438 \u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0433\u0435\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043b\u0443\u0430:<\/p>\n<p>&#171;`<\/p>\n<pre><code class=\"lua\">local gate = {}gate.inputCount = 1   gate.outputCount = 8  local PC     = 0        local REG_A  = 0        local REG_B  = 0        local ZERO_F = false    local lastClk = false local memory = {}for i = 0, 255 do memory[i] = 0 endlocal OP = {    NOP  = 0x00,     LDA  = 0x01,     LDB  = 0x02,     ADD  = 0x03,     SUB  = 0x04,     ANA  = 0x05,     ORA  = 0x06,     STA  = 0x07,     LDA_M= 0x08,     JMP  = 0x09,     JZ   = 0x0A, }local program = {    OP.LDA, 0,          OP.STA, 200,        OP.LDA, 1,          OP.STA, 201,            OP.LDA_M, 200,      OP.LDB,   0,        OP.ADD,                 OP.LDB,   201,      OP.ADD,                 OP.STA,   202,          OP.LDA_M, 201,      OP.STA,   200,      OP.LDA_M, 202,      OP.STA,   201,          OP.LDB,   0,        OP.ADD,             OP.JZ,    0,            OP.JMP,   8,    }for i = 0, #program - 1 do    memory[i] = program[i + 1]endfunction gate.update(inputs)    local clk = inputs[1]        if clk and not lastClk then        local opcode = memory[PC]                if opcode == OP.NOP then            PC = (PC + 1) % 256                    elseif opcode == OP.LDA then            REG_A = memory[(PC + 1) % 256]            PC = (PC + 2) % 256                    elseif opcode == OP.LDB then            REG_B = memory[(PC + 1) % 256]            PC = (PC + 2) % 256                    elseif opcode == OP.ADD then            REG_A = (REG_A + REG_B) % 256            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.SUB then            REG_A = (REG_A - REG_B) % 256            if REG_A &lt; 0 then REG_A = REG_A + 256 end            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.ANA then            local res = 0            local a, b = REG_A, REG_B            for bit = 0, 7 do                if (a % 2 == 1) and (b % 2 == 1) then res = res + 2^bit end                a, b = math.floor(a \/ 2), math.floor(b \/ 2)            end            REG_A = res            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.STA then            local addr = memory[(PC + 1) % 256]            memory[addr] = REG_A            PC = (PC + 2) % 256                    elseif opcode == OP.LDA_M then            local addr = memory[(PC + 1) % 256]            REG_A = memory[addr]            ZERO_F = (REG_A == 0)            PC = (PC + 2) % 256                    elseif opcode == OP.JMP then            PC = memory[(PC + 1) % 256]                    elseif opcode == OP.JZ then            if ZERO_F then                PC = memory[(PC + 1) % 256]            else                PC = (PC + 2) % 256            end        else            PC = 0        end                print(string.format(\"[8-bit CPU] PC: 0x%02X | OP: 0x%02X | REG_A: %d | REG_B: %d | ZF: %s\",             PC, opcode, REG_A, REG_B, tostring(ZERO_F)))    end        lastClk = clk        return {        (math.floor(REG_A \/ 1) % 2) == 1,        (math.floor(REG_A \/ 2) % 2) == 1,        (math.floor(REG_A \/ 4) % 2) == 1,        (math.floor(REG_A \/ 8) % 2) == 1,        (math.floor(REG_A \/ 16) % 2) == 1,        (math.floor(REG_A \/ 32) % 2) == 1,        (math.floor(REG_A \/ 64) % 2) == 1,        (math.floor(REG_A \/ 128) % 2) == 1    }endreturn gate  <\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0430\u043a \u044f \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0421++ \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a SFML, sol2 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 CMake. \u041f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u044b\u0440\u043e\u0439 \u0445\u043e\u0442\u044c \u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0440\u0430\u0437\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u0435\u043d\u0442\u0438\u043b\u0438 \u0438 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u043e\u0435. \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 sf::VertexArray \u0447\u0442\u043e \u0434\u0430\u0451\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0449\u0443\u0442\u0438\u043c\u044b\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432. <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u043c\u0443 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u043c\u043d\u0435, \u0432\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0433\u0438\u0442\u0445\u0430\u0431:<\/p>\n<p><a href=\"https:\/\/github.com\/nik251021\/LogicGrid\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/nik251021\/LogicGrid<\/a> <\/p>\n<\/div>\n<p>\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\/1053312\/\">https:\/\/habr.com\/ru\/articles\/1053312\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0433\u0435\u0439\u0442\u043e\u0432 \u0438\u043b\u0438 \u0432\u0435\u043d\u0442\u0438\u043b\u0435\u0439 \u043d\u0430 \u0421++ (sfml \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0438 + sol2 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u043b\u0443\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u0443\u0430 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: &#171;`local gate = {}gate.inputCount = 2gate.outputCount = 1function gate.update(inputs)    local a = inputs[1] or false    local b = inputs[2] or false    local result = a and b        return { result }endreturn gate\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0433\u0435\u0439\u0442 \u0438 (\u041a\u043e\u0433\u0434\u0430 2 \u0432\u0445\u043e\u0434\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0432\u044b\u0445\u043e\u0434 \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f true, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u044c \u043e\u0434\u0438\u043d \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u0442\u043e \u0440\u0430\u0432\u0435\u043d false.). \u0418 \u0442\u0430\u043a-\u0436\u0435 \u0431\u0438\u043d\u0434\u044b \u0433\u0435\u0439\u0442\u043e\u0432 \u043a \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c: &#171;`local binds = {    [&#171;Num1&#187;] = &#171;scripts\/gates\/and.lua&#187;,    [&#171;Num2&#187;] = &#171;scripts\/gates\/or.lua&#187;,    [&#171;Num3&#187;] = &#171;scripts\/gates\/xor.lua&#187;,    [&#171;Num4&#187;] = &#171;scripts\/gates\/not.lua&#187;,    [&#171;Num5&#187;] = &#171;scripts\/gates\/halfadder.lua&#187;}return binds\u0414\u043b\u044f \u0431\u0438\u043d\u0434\u0430 \u043a\u043b\u0430\u0432\u0438\u0448 \u0432\u0430\u043c \u043b\u0438\u0448\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u0443 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0438 \u043f\u0443\u0442\u044c \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0433\u0435\u0439\u0442\u0430 \u043d\u0430 \u043b\u0443\u0430.  \u0422\u0430\u043a-\u0436\u0435 \u043c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0441\u043c\u043e\u0433\u0443 \u043b\u0438 \u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0433\u0435\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u043f\u043e\u0434\u043e\u0431\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043b\u0443\u0430:&#171;`local gate = {}gate.inputCount = 1   gate.outputCount = 8  local PC     = 0        local REG_A  = 0        local REG_B  = 0        local ZERO_F = false    local lastClk = false local memory = {}for i = 0, 255 do memory[i] = 0 endlocal OP = {    NOP  = 0x00,     LDA  = 0x01,     LDB  = 0x02,     ADD  = 0x03,     SUB  = 0x04,     ANA  = 0x05,     ORA  = 0x06,     STA  = 0x07,     LDA_M= 0x08,     JMP  = 0x09,     JZ   = 0x0A, }local program = {    OP.LDA, 0,          OP.STA, 200,        OP.LDA, 1,          OP.STA, 201,            OP.LDA_M, 200,      OP.LDB,   0,        OP.ADD,                 OP.LDB,   201,      OP.ADD,                 OP.STA,   202,          OP.LDA_M, 201,      OP.STA,   200,      OP.LDA_M, 202,      OP.STA,   201,          OP.LDB,   0,        OP.ADD,             OP.JZ,    0,            OP.JMP,   8,    }for i = 0, #program &#8212; 1 do    memory[i] = program[i + 1]endfunction gate.update(inputs)    local clk = inputs[1]        if clk and not lastClk then        local opcode = memory[PC]                if opcode == OP.NOP then            PC = (PC + 1) % 256                    elseif opcode == OP.LDA then            REG_A = memory[(PC + 1) % 256]            PC = (PC + 2) % 256                    elseif opcode == OP.LDB then            REG_B = memory[(PC + 1) % 256]            PC = (PC + 2) % 256                    elseif opcode == OP.ADD then            REG_A = (REG_A + REG_B) % 256            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.SUB then            REG_A = (REG_A &#8212; REG_B) % 256            if REG_A &lt; 0 then REG_A = REG_A + 256 end            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.ANA then            local res = 0            local a, b = REG_A, REG_B            for bit = 0, 7 do                if (a % 2 == 1) and (b % 2 == 1) then res = res + 2^bit end                a, b = math.floor(a \/ 2), math.floor(b \/ 2)            end            REG_A = res            ZERO_F = (REG_A == 0)            PC = (PC + 1) % 256                    elseif opcode == OP.STA then            local addr = memory[(PC + 1) % 256]            memory[addr] = REG_A            PC = (PC + 2) % 256                    elseif opcode == OP.LDA_M then            local addr = memory[(PC + 1) % 256]            REG_A = memory[addr]            ZERO_F = (REG_A == 0)            PC = (PC + 2) % 256                    elseif opcode == OP.JMP then            PC = memory[(PC + 1) % 256]                    elseif opcode == OP.JZ then            if ZERO_F then                PC = memory[(PC + 1) % 256]            else                PC = (PC + 2) % 256            end        else            PC = 0        end                print(string.format(&#171;[8-bit CPU] PC: 0x%02X | OP: 0x%02X | REG_A: %d | REG_B: %d | ZF: %s&#187;,             PC, opcode, REG_A, REG_B, tostring(ZERO_F)))    end        lastClk = clk        return {        (math.floor(REG_A \/ 1) % 2) == 1,        (math.floor(REG_A \/ 2) % 2) == 1,        (math.floor(REG_A \/ 4) % 2) == 1,        (math.floor(REG_A \/ 8) % 2) == 1,        (math.floor(REG_A \/ 16) % 2) == 1,        (math.floor(REG_A \/ 32) % 2) == 1,        (math.floor(REG_A \/ 64) % 2) == 1,        (math.floor(REG_A \/ 128) % 2) == 1    }endreturn gate  \u041a\u0430\u043a \u044f \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0421++ \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a SFML, sol2 \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 CMake. \u041f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u044b\u0440\u043e\u0439 \u0445\u043e\u0442\u044c \u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0440\u0430\u0437\u043d\u044b\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u0435\u043d\u0442\u0438\u043b\u0438 \u0438 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u043e\u0435. \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 sf::VertexArray \u0447\u0442\u043e \u0434\u0430\u0451\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0449\u0443\u0442\u0438\u043c\u044b\u0439 \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432. \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u043c\u0443 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u043c\u043d\u0435, \u0432\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0433\u0438\u0442\u0445\u0430\u0431:https:\/\/github.com\/nik251021\/LogicGrid \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1053312\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-485440","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485440","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=485440"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/485440\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=485440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=485440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=485440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}