Skip to content

Instantly share code, notes, and snippets.

View zmactep's full-sized avatar

Pavel Yakovlev zmactep

View GitHub Profile
@zmactep
zmactep / chemicals.scala
Last active August 29, 2015 14:24
Chemicals
abstract class Atom(val isotope : Int, val charge : Int = 0) {
def number : Int
def name : String
def symbol : String
def valence : Set[Int] = Set.empty[Int]
}
trait Organic
object Atom {