I hereby claim:
- I am scothalverson on github.
- I am scothalverson (https://keybase.io/scothalverson) on keybase.
- I have a public key whose fingerprint is 8AA0 CB67 2DB4 58C4 66B3 2D35 6B17 C48B CF52 D34B
To claim this, I am signing this object:
//Descartes Compute Node Sanity Check | |
// | |
//to compile: g++ -Wall -fopenmp ompTest.cpp -o ompTest | |
// | |
//to run: time ./ompTest | |
#include <iostream> | |
#include <omp.h> | |
#include <unistd.h> | |
#include <stdio.h> |
from sys import argv as a | |
def mv(val, depth, board, d, s = 0): #perform a move | |
if checkWin(board,d) != 0: #check that its not a winning state | |
return 1 | |
if depth > 0: #check that we haven't gone beyond specified depth | |
for i, j in [(i,j) for i in xrange(d) for j in xrange(d)]: | |
if board[i][j] == 0: #if not already set | |
board[i][j] = val #set | |
s += mv(-val, depth-1,board,d) #recursively move | |
board[i][j] = 0 #unset |
I hereby claim:
To claim this, I am signing this object: