Доделал источник сообщения

This commit is contained in:
2021-05-03 20:30:57 +03:00
parent 18fcb1de97
commit be30d3421c
4 changed files with 1307 additions and 359 deletions

View File

@@ -1,4 +1,4 @@
input_code = {1, 0, 1, 1, 1, 1, 0, 0, 1}
input_code = {1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0}
-- Logical sum
function m2s(a, b)
@@ -28,6 +28,10 @@ function coder(input_code)
return result, states
end
function decoder(input_code)
end
result, states = coder(input_code)
for _, v in ipairs(states) do print(v..' ') end