Skip to content

Instantly share code, notes, and snippets.

View goplayerjuggler's full-sized avatar

Malcolm Schonfield goplayerjuggler

View GitHub Profile
@goplayerjuggler
goplayerjuggler / statsForToroidalGoInLittleGolem.js
Last active August 27, 2020 22:28
Some javascript to produce statistics on wins/losses for toroidal go, in LittleGolem
/*
# Purpose
This script produces some statistics on wins/losses for toroidal go, for a given player (A), in LittleGolem.
Part of the info copied to the clipboard is the list of players (B) where B has either (1) beaten A at least once,
(2) has played at least 3 games against A (by default, players B with 0 wins against A are not included)
The output format of this list is:
```
[player B's name]([player B's rank]): [nb of losses against B (games won by B and lost by A)]/[nb of wins against B (games won by A and lost by B)] (percentage)
@goplayerjuggler
goplayerjuggler / gist:200fef9c59fa70a8aea029291b27686d
Last active September 18, 2020 11:53
Script to get content for a Sensei's library page: Chinese Go Terms / English to Chinese
/*
# Intro
Script to run to get new content for SL page [Chinese Go Terms / English to Chinese](https://senseis.xmp.net/?ChineseGoTerms%2FEnglishToChinese).
# Usage instructions (for Firefox):
1. Open the parent SL page _in edit mode_:
https://senseis.xmp.net/?edit=ChineseGoTerms&section=1
in Dev Tools window
2. Press F12 to open the Developer Tools