Skip to content

Instantly share code, notes, and snippets.

View Mr-Perfection's full-sized avatar
😎

Stephen S. Lee Mr-Perfection

😎
View GitHub Profile
1. Go to https://golang.org/dl/ and get download based on your OS.
2. Get VSCode
3. Get all the installs that VSCode recommends for Go.
Verifying my Blockstack ID is secured with the address 1MDjAKK1ySkgQkSNULf467H5jdwqvpTinF https://explorer.blockstack.org/address/1MDjAKK1ySkgQkSNULf467H5jdwqvpTinF
# 4 in a row game
# https://en.wikipedia.org/wiki/Connect_Four
'''
Game
board: a 2D array of cells
check_winner(): check who won the game every input from player1 or player2
game_over(): terminates a game
place_checker(x, y, player): takes an input and update a cell
print_board()
'''
mine_sweeper
board: 2D array
cell
state: mine or not
revealed: revealed or not
value: number of mines in surrounding zone
reveal(x,y): reveal the cell
game_over(): exit the game