Skip to content

Instantly share code, notes, and snippets.

START = 30
SIZE = 50
WHITE_PIECE = 1
BLACK_PIECE = 2
DEAD_TEST = 3
COUNTED = 4
WHITE_DEAD = 6
BLACK_DEAD = 7 #these are what will go on the board for "temporarily" dead groups
TW_IP=10.56.127.245
OAM_MASK=28
CP_MASK=29
UP_MASK=29
HTTPDPlat_IP=10.69.9.10
HCLBRG_IP=10.69.9.18
MGW_IPNIURG0=10.69.9.28
CP_GW_IP=10.69.9.17
UP_GW_IP=10.69.9.25
class RubyWarrior::Space
def <=>(other)
if self.ticking? && !other.ticking?
return -1
elsif !self.ticking? && other.ticking?
return 1
else
return self.to_s <=> other.to_s
end
end
HTTPDPlat_IP=10.69.9.10
OAM_MASK=28
HCLBRG_IP=10.69.9.18
CP_MASK=29
TW_IP=10.56.127.245
CP_GW_IP=10.69.9.17
#fsclish -c "add networking address dedicated /HTTPDPlat iface eth4 ip-address $HTTPDPlat_IP/$OAM_MASK"
fsclish -c "add networking address dedicated /MGW_HCLBRG-0 iface eth2 ip-address $HCLBRG_IP/$CP_MASK"
fsclish -c "set routing node CLA-0 static-route $TW_IP/32 nexthop gateway address $CP_GW_IP on"