Skip to content

Instantly share code, notes, and snippets.

@Jeklah
Jeklah / gameBoard.py
Last active July 24, 2021 22:31
Classes for battleships and players in the game.
"""Game Board class for battleships."""
class GameBoard:
"""Game board class to represent the game area for where the
ships can be placed in the battleships game."""
def __init__(self, shipDrawer):
self.drawBoard(10)
def drawBoard(area):
# Original theme https://github.com/agnoster zsh theme
# modified by lborg019
# further modified by Jeklah
ZSH_THEME_GIT_PROMPT_DIRTY=' ●'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}
# Original theme https://github.com/agnoster zsh theme
# modified by Jeklah
ZSH_THEME_GIT_PROMPT_DIRTY=' ±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}