This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Samuel' | |
import random | |
import math | |
from itertools import combinations | |
import numpy as np | |
import pylab as pl | |
from matplotlib import collections as mc | |
from math import sin, cos, pi, factorial | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Samuel' | |
# Python 3.3 | |
# Plays the game of Connect 4 against a human opponent | |
import random | |
# global constants | |
X = 'X' | |
O = 'O' | |
EMPTY = " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Samuel' | |
import time | |
from itertools import permutations | |
import random | |
import math | |
import matplotlib.pyplot as plt | |
e = math.e | |
n = 8 #default size of board, can be changed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Meir on 1/21/2015. | |
*/ | |
public class Board { | |
OthelloGame.CellState[][] data = new OthelloGame.CellState[SIZE][SIZE]; | |
public static final int SIZE = OthelloGame.BOARD_SIZE; | |
public Board() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'Meir' | |
import random | |
import numpy as np | |
import pylab as pl | |
from matplotlib import collections as mc | |
from itertools import combinations, permutations | |
N = 50 # number of points |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turtle |