Golay Code in JS
1. Input Message (12 bits, space-separated)
Random
×
2. Get Encoded Codeword
Encode
3. Input Error Positions (space-separated)
Random
×
4. Get Received Message
Add Errors
5. Get Error Pattern and Decoded codeword
Decode