Skip to content

Instantly share code, notes, and snippets.

View rinfiyks's full-sized avatar

Tom Gould rinfiyks

View GitHub Profile
@rinfiyks
rinfiyks / devils-chessboard.py
Last active August 29, 2015 14:12
Python progam to solve the devil's chessboard problem
import math
import random
def main():
board_size_power = 6
board_size = int(math.pow(2, board_size_power))
initial_board = []
# generate a random board