I want to create a game that can be played with pen and paper, like the original battleship. Also, it should have that non-abstract setting to it (in contrast to tic-tac-toe, for example). Battleship itself is a good start, but I dislike a couple of things about it:
This file contains 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
#!/bin/bash | |
# Git conflict resolving helper | |
# Show a numbered list of all conflicts with `conflicts-list`. | |
# Edit any of the conflicting files by `conflicts-edit <index-number>`. | |
# resolve init | |
__conflicts-init() { | |
# read the names of all unmerged files into the array _CONFLICTS | |
readarray -t _CONFLICTS < <(git diff --name-only --diff-filter=U) |