Skip to content

jacobsandlund/sixcode

Repository files navigation

Sixcode

Sixcode is coding using hexagons.

Setup

$ bin/docker-pull
$ bin/docker-run
$ bin/make  # This had issues, but compiled successfully. Needed to kill -9 the process.
$ python -m http.server

Testing

To run all tests, use bin/test. All lines starting with //=> are added automatically when the file runs (e.g. bin/run hex-test.c). Broken tests will result in a git diff. If the changed output is desired, simply git add the diff.

If you are using Vim, the following .vimrc lines add a keyboard shortcut (<leader>r) to run the test file and reload any changes, as well as a shortcut to git add --patch (<leader>a) a file.

" Sixcode configs:
command -nargs=0 RunSixcode execute 'silent !bin/run % || read -n1 -r -p "=============== Press any key to continue..."' | redraw!
nnoremap <leader>r :w<CR>:RunSixcode<CR>:e!<CR>

command -nargs=0 GitAddPatch execute 'silent !git add --intent-to-add -- % && git add --patch -- %' | redraw!
nnoremap <leader>a :w<CR>:GitAddPatch<CR>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages