Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am aacunningham on github.
  • I am donutmtoazt ( on keybase.
  • I have a public key ASDBVxDGLRafmUS2b2SSpLtFQk1yqEOTnpH5B-A7pUh5jwo

To claim this, I am signing this object:

View main.cpp
#include <unistd.h>
#include <sys/wait.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <chrono>
using duration = std::chrono::duration<double, std::milli>;
using custom_clock = std::chrono::high_resolution_clock;
class Node:
def __init__(self, state, parent=None, action=None, cost=0):
self.state = state
self.parent = parent
self.action = action
self.cost = cost
if parent is not None:
self.depth = parent.depth + 1
self.depth = 0