This file contains 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
(ns lol | |
(:use clojure.test)) | |
(def board [[nil :mine nil nil ] | |
[:mine nil nil nil ] | |
[nil nil :mine nil ] | |
[:mine nil nil :mine]]) | |
(defn y [c] (c 0)) | |
(defn x [c] (c 1)) |
This file contains 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
(ns lol | |
(:use clojure.test)) | |
(def board [nil :bomb nil nil | |
:bomb nil nil nil | |
nil nil :bomb nil | |
:bomb nil nil :bomb]) | |
(with-test | |
(defn bomb? |
This file contains 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
# To install dependencies: | |
# $ npm install express mongoose connect-mongoose | |
fs = require "fs" | |
express = require 'express' | |
mongoose = require 'mongoose' | |
sessionStore = require("connect-mongoose")(express) | |
Schema = mongoose.Schema | |
mongo_uri = "mongodb://localhost/bodilpwnz" |
NewerOlder