This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (Use zig 0.11) | |
// | |
// Idea for further exploration: remove inferable arguments from all functions. | |
// For example the types in the 'map' function. Or the type in the 'match' | |
// function. I think this is doable, but it produces a lot of code and is a bit | |
// error-prone. So maybe I'll do it at the end, after expanding the parser. | |
const std = @import("std"); | |
const testing = std.testing; |
EDIT (April 24th 2023): I created another notation, which I think it better. Its description is a bit more formal, but it's just as usable, by both humans and computers.
As far as I'm aware, at the time of writing (August 2022) the only prior work on an open and public notation for Settlers is SGN: Settlers-Game-Notation by dnmfarrell.
HSGN is not meant to compete with SGN. The goal of HSGN differs from the goal of SGN. SGN is a notation for computers. HSGN however, is designed as a notation that humans can easily read and write.
I developed this notation to annotate live games with pen and paper, for post-game review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Copyright (c) 2022 Stef Gijsberts | |
This code is licensed under the MIT license. | |
This program transposes files with chords. | |
- It reads from standard input and writes to standard output. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- INSTALLING PACKER ON LINUX: | |
-- git clone --depth 1 https://github.com/wbthomason/packer.nvim\ | |
-- ~/.local/share/nvim/site/pack/packer/start/packer.nvim | |
vim.keymap.set("n", " ", "<Nop>", { silent = true, remap = false }) | |
vim.g.mapleader = " " | |
vim.g.maplocalleader = "," | |
vim.wo.relativenumber = true | |
vim.wo.number = true |