treant 0.4.0

High-performance, lock-free Monte Carlo Tree Search library for Rust.
Documentation
.board {
  display: inline-block;
  background: #2563eb;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.columnHeaders {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.columnButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 0;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.columnButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.columnButton:disabled {
  cursor: default;
  opacity: 0.3;
}

.columnButton:disabled:hover {
  background: none;
  color: rgba(255, 255, 255, 0.7);
}

.grid {
  display: grid;
  gap: 4px;
}

.cell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s;
}

.cellEmpty {
  background: #e5e7eb;
}

.cellP1 {
  background: #ef4444;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cellP2 {
  background: #eab308;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cellP3 {
  background: #22c55e;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cellP4 {
  background: #8b5cf6;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ---- Settings ---- */
.settingsRow {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.settingLabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--ifm-color-emphasis-700);
}

.settingLabel span {
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 4px;
  background: var(--ifm-background-surface-color);
  color: var(--ifm-font-color-base);
  cursor: pointer;
  width: 5.5rem;
  text-align: center;
}

.select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.playerRow {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.playerBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--ifm-color-emphasis-200);
}

.playerBadge select {
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 3px;
  background: var(--ifm-background-surface-color);
  color: var(--ifm-font-color-base);
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dotP1 { background: #ef4444; }
.dotP2 { background: #eab308; }
.dotP3 { background: #22c55e; }
.dotP4 { background: #8b5cf6; }

.boardInfo {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ifm-color-emphasis-500);
  margin-bottom: 0.5rem;
}

.statusBar {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 1.5rem;
}

/* ---- Analysis table ---- */
.analysisTable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.analysisTable th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ifm-color-emphasis-600);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.analysisTable td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-100);
}

.analysisTable tbody tr:last-child td {
  border-bottom: none;
}

.mono {
  font-family: var(--ifm-font-family-monospace);
}

.bestCol {
  font-weight: 700;
  color: #22c55e;
}

.barCell {
  width: 40%;
}

.bar {
  height: 10px;
  border-radius: 3px;
  background: var(--ifm-color-primary);
  transition: width 0.3s;
}

[data-theme='dark'] .cellEmpty {
  background: #374151;
}