Skip to content

Instantly share code, notes, and snippets.

View apry0512's full-sized avatar

Aparajita Singh apry0512

View GitHub Profile
@apry0512
apry0512 / chess.py
Created January 6, 2022 17:36 — forked from rsheldiii/chess.py
chess program for python
"""CONVENTIONS:
positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples
"""
import itertools
WHITE = "white"
BLACK = "black"