Skip to content

Instantly share code, notes, and snippets.

View kburman's full-sized avatar

Kshitij Burman kburman

View GitHub Profile
@kburman
kburman / tictactoe.cpp
Created January 28, 2016 12:43
TicTacToe in C++
#include <iostream>
#define true 1
#define false 0
using namespace std;
//typedef int bool;
enum Symbol
{
Cross,
Zero,
var dgram = require('dgram');
var socket = dgram.createSocket('udp4');
var testMessage = "[hello world] pid: " + process.pid;
var broadcastAddress = '255.255.255.255';
var broadcastPort = 5555;
socket.setBroadcast(true);
socket.bind(broadcastPort, '0.0.0.0');