~starkingdoms/starkingdoms

ref: 1aa4b3b1144024bc1d831e9f69f7aba1b61a6a0b starkingdoms/starkingdoms-client-js/src/planet_colors.ts -rw-r--r-- 198 bytes
1aa4b3b1 — core ui experiments & the matrix math is wrong 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
import { PlanetType } from "./protocol.ts";

export function planet_color(type: PlanetType): string {
  if (type === PlanetType.Earth) {
    return "limegreen";
  } else {
    return "white";
  }
}