Skip to content

curtisault/tcc23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Tiny Code Christmas 2023 Ocaml Edition

What is Tiny Code Christmas?

TCC is a series of graphical challenges to learn programming languages. I found this to be more enticing than Advent of Code.

Why Ocaml?

BECAUSE.

Requirements

Installing OCaml Graphics

This project relies on OCaml's graphics package, which is somewhat non-trivial to install, due to native system dependencies. Some instructions on how make it work are provided below:

Mac OS X

  1. Install XQuartz.

  2. Log-out from the system and log-in again.

  3. After that, you will have to re-install all packages you have previously installed via opam. For instance, first try

    opam switch
    

    If your version is, for instance 4.10.0, next run

    opam switch reinstall 4.10.0
    

    It will take a while, as it re-builds all packages from scratch.

    The graphics package has been checked to work with OCaml 4.06.1, 4.07.1, and 4.10.0.

  4. Next, execute

    opam update; opam upgrade
    opam install graphics
    

    After that you should be able to build the project.

  5. You might need to install core, and batteries via opam (using opam install .).

Linux

  1. Make sure that x11 window manager is installed (it comes as a part of most of the standard distributions).

  2. Proceed to Step 3 for Mac OS X (above).

Windows

Uses the native Win32 API.

About

Tiny Code Christmas 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages