interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / secret-handshake / secret-handshake.om

11 lines · 565 bytes Raw Blame History
1note Exercism-style exercise "secret-handshake": https://exercism.org/tracks/python/exercises/secret-handshake
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note commands writes the handshake of the low five bits of n into o, joined by commas: 1 wink,
4note 2 double blink, 4 close your eyes, 8 jump, in that order, reversed when bit 16 is set; returns
5note the number of bytes written.
6note Check it with: sh exercise.sh exercises/secret-handshake
7om2
8fn commands n ulong o edit uchar * to ulong
9note replace this line with your solution
10trap 13
11end