Skip to content

Coding in Cythan

Discursif edited this page Apr 10, 2020 · 2 revisions

Disclaimer

Warning : I don't encourage you to code in Cythan directly. This is hard and very sensitive to errors like new line or spaces.

If you want to code in Cythan for the challenge, please use the Basic Cythan Language. I allow you to comment your code and not always kepping tract of the operation number.

Basic Cythan Language is just a easier way to wrote Cythan; but it is also compatible with pure Cythan Language

How to make a program

Creat a new file in the /program folder. Name it with the extension .cyt, this way the loader can find it. You can code directly in it. Open it with a text editor like notepad, notepad++, SublimText3, Atom or Visual Studio Code and you can directly write your code in it.

To write your code, use the ';' character to change cell and the ',' character to chnage integer.

Exemple

A OR gate.

1,1;-1,-2;-1,-4;13,9;13,10;16,1;14,-3;-2,10;-1,-2;-3,11;12,12;12,12;17,0;12,12;-1,-1;0,16;19,1;18,1;100,-1;999,-1

This program will return 100 if the result is 1 and 999 if the result is 0. The two input bytes are the two -1 at cell 14. Chnage to 1 for 1 and -1 for 0.

With this exmple I want to show you how complex are a code in pure Cythan language.

Clone this wiki locally