Skip to content

Instantly share code, notes, and snippets.

View haldunatar's full-sized avatar

Haldun Atar haldunatar

View GitHub Profile
@haldunatar
haldunatar / server.js
Last active February 18, 2018 18:31
CRUD app for local frontend development.
const app = require('express')();
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
app.use(bodyParser.json());
app.listen(3000, () => console.log('server is running on 3000'));
mongoose.connect('mongodb://localhost:27017/todo-list');
import time
import random
# Made moves track
moves = []
# Ai memory
aiWinningMoves = []
# Possible moves