You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Leo allows users to define composite data types with thestruct keyword.The game board is represented by a struct calledBoard, which contains threeRows.An alternative representation would be to use an array, however, these are not yet supported in Leo.
Language Features
struct declarations
conditional statements
early termination. Leo allows users to return from a function early using thereturn keyword.
Running the Program
Leo provides users with a command line interface for compiling and running Leo programs.Users may either specify input values via the command line or provide an input file ininputs/.
Providing inputs via the command line.
Run
leo run<function_name><input_1><input_2> ...
See./run.sh for an example.
Using an input file.
Modifyinputs/tictactoe.in with the desired inputs.