Skip to content

Instantly share code, notes, and snippets.

$board = {}
$turn = 0
def main()
# display board
# player 1 select input
# display board
# player 2 select input
until $turn >= 9
showBoard()
input = getInput()
[
{
"name": "Skyscraper",
"imageURL": "https://www.tgv.com.my/contentAsset/image/f8f0892f-e3c7-4267-8248-ac0e422eea05/fileAsset/filter/Resize,Jpeg/resize_w/290/resize_h/430/v/b6f50a9d-8ffa-4e7b-8c1a-373fa1ba1fce"
},
{
"name": "Ant-Man and the Wasp",
"imageURL": "https://www.tgv.com.my/contentAsset/image/691e2242-e0f0-42de-895d-a669f723d574/fileAsset/filter/Resize,Jpeg/resize_w/290/resize_h/430/v/07d64dca-ed2f-48bd-ace3-c28dcc74b0f7"
},
{
#include <random>
using namespace std;
#define INF 999
struct Edge {
Edge(int to,int cost): to(to), cost(cost) {};
int to, cost;
};
vector<vector<int> > generateAdjMatrix(int vertex_count, int edge_count) {
@bingyuanng
bingyuanng / main.cpp
Last active January 12, 2016 10:16
Dijkstra
//Assignment Dijkstra algo
#include <iostream>
#include <vector>
#include <queue>
#include <utility>
#include <chrono>
#include "chrono_io"
#include "ratio_io"
#include "adjMatrixgenerator.cpp"