Casini

From Esolang
Jump to navigation Jump to search

Casini is a language created by Abbin21, the language is themed after different casino related items. The code is written in .cas files[1].

Operators and INTs

There are four operators in casini, which are represented by the four colors of playing cards.

/\ | /\/\ |  o  |  /\
\/ | \  / | o|o | /  \
   |  \/  |     | \||/
*  |   +  |  /  |  -

You can also create INTs by writing out "Dices" that look like this:

 _____
|1 5 6|  The numbers inside the dice are summed up.
|2 8 9|  This specific dice has a value of 31.
|_____|  Since the dice only can contain 6 numbers the maximum number is 54.

There are also variables, which are created like this:

 _____
|2 3 6|  
|6 1 4|  Note that the first parenthesis must line up with the pipeline char
|_____|
(#)variableName

You can create strings as well like this: Unfortunately the strings can't be printed or used in any other way yet.

 _____                             
|7 4 8|                            
|4 8 1|   ($)StringName = StringText  
|_____| 

Example code

When making operations on dices you write out the entire dice, followed by an operator, followed by another dice OR a variable name that has been created.

All calculations follow BEMDAS.

 _____           _____                  |                   
|9 9 9|  /\/\   |1 4 1|   /\            |                 
|9 9 9|  \  /   |1 1 1|   \/  (#)Chip   | This will perform 54 + 9 * 54  
|_____|   \/    |_____|                 |
(#)Chip                                 |

Things worth noting

Important read Note that the top char of all operators are to be placed on the 2nd line, and the rest of the operator built under it.

The variables and string calls (Not initializations) need to be placed on the 3rd line to work.

External resources

Projects Github page