Skip to content

Instantly share code, notes, and snippets.

View sequentialchaos's full-sized avatar

sequentialchaos sequentialchaos

View GitHub Profile
@sequentialchaos
sequentialchaos / tic-tac-toe.py
Created April 19, 2019 15:41
Tic Tac Toe game in Python
import re
class TicTacToe:
def __init__(self, n=3):
self.n = n
self.board = [
['_' for col in range(n)]
for row in range(n)
]
self.teams = ['X', 'O']
@sequentialchaos
sequentialchaos / README.md
Last active January 1, 2020 08:05
Prime Hangman - a CLI math game

Prime Hangman

Introduction

Have you ever wanted to play the game Hangman without words or letters, but with prime numbers and digits? Well, now's your chance!


Game Instructions

Prime Hangman starts you off with one composite number and a list of prime numbers (or just "primes"). Some of these primes are factors of the composite number, the others are not. Your goal is to determine the prime factorization of the composite number by choosing from the list of primes, one at a time. Each incorrect guess costs you a life, and if you run out of lives, then the game ends. So choose carefully!

@sequentialchaos
sequentialchaos / data.csv
Last active January 1, 2020 08:04
Baseball Hall of Fame Monitor vs. Hall of Fame Standards, active hitters or retired after 2013
Name HoF_Standards HoF_Monitor BlackInk GrayInk
A.J. Ellis 5 4 0 0
A.J. Pierzynski 30 108 0 5
A.J. Pollock 13 11 0 18
Aaron Hicks 6 0 0 2
Aaron Hill 17 18 1 31
Aaron Judge 25 30 9 21
Adam Dunn 32 75 4 87
Adam Duvall 9 11 0 15
Adam Eaton 12 5 2 10