Data Model - Tzaphkiel/G34S GitHub Wiki

Data model

Domain

var grid = [court, ...];
var court = {
  name: "One",
  timeSlots: [timeslot, ...] # ordered
};
var timeslot = {
  startTime: "20:00",
  endTime: "20:40",
  court: court1,
  players: [player1, player2]
};
var player = {
  name: "Tzaphkiel",
  level: 0,
  preferedTS: "EARLY",
  preferedOponents: ["", ""],
  numberOfGames: 3,
  NumberOfChalenge: 1
};

Genetics

var population = [Individual, ...];
var individual = [chromosome, ...];
var chromosome = [gene, ...];
var gene = [1, 0, 1, 1, 1, 0, 1];