~starkingdoms/starkingdoms

ref: c407349bf0c3102b6f292742db23f3e5be1aa696 starkingdoms/starkingdoms-client/src/planet_colors.ts -rw-r--r-- 198 bytes
c407349b — ghostly_zsh move variables to a separate list, assign to array subscript works 1 year, 2 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";
  }
}