Skip to content

sam4815/osnekl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

osnekl

in

About

Recently I've been working through Jane Street's OCaml Workshop. One of the projects involves building a Snake clone, and it uses X11 for rendering. Though it's relatively simple to work with, the graphics are a little clunky and it comes with an additional system dependency (e.g. XQuartz for Mac users), so I broke my Snake clone out into a standalone app and switched to using Notty to display the game in the terminal.

Installation

To build the project, run

dune build

Then play the game using

_build/default/bin/main.exe

To run tests,

dune runtest

Controls

wasd or โ†‘โ†โ†“โ†’ to move

Space to accelerate

r to restart

Esc to quit

Resources

  1. https://github.com/cedlemo/OCaml-Notty-introduction

About

๐Ÿ Snake in your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published