Skip to content

Instantly share code, notes, and snippets.

@MatMoore
MatMoore / battleship.erl
Created January 19, 2016 22:23 — forked from danielerapati/battleship.erl
Erlang battleship: January 2016 West London Hacknight
-module(battleship).
-import(sets,[new/0, add_element/2, is_element/2]).
-import(lists,[foldl/3]).
-export([new_grid/0]).
-export([new_grid/2]).
-export([fill_cell/2]).
package wlhacknight
import scala.io.Source
import java.io.File
import java.util.Arrays
import scala.collection.mutable.ArrayBuffer
import scala.collection.immutable.HashMap
import scala.util.Random
/**