Skip to content

Instantly share code, notes, and snippets.

@RafaelCosman
RafaelCosman / gist:f43ab249ba0b1fa07da2
Created April 21, 2015 00:57
StreetCode Karel Library
{
/*************************************
* Welcome to Karel in ProcessingJS!
*
* Karel is a great way to learn control structures while solving puzzles. Karel is
* a robot living in a grid world. It only knows a few things about the world around it,
* and can only follow a few basic commands: move(), turnLeft(), putBeeper(), and pickBeeper().
* With these simple commands, you'll be able to do so many cool things!
*
* Tell Karel what to do by editting its run function. Scroll down to the bottom to get started!
### From https://gist.github.com/RafaelCosman/9efc8181d37cdfdaaca70907bcd97372 ###
import tensorflow as tf
import numpy as np
np.set_printoptions(precision=3)
sess = tf.InteractiveSession()
# use the following to import MNIST: