shapeToScore((((opponent - 1) % 3) + 3) % 3)
https://misskey.biribiri.dev/files/6d2e3a80-ca59-4734-bea3-15198df1b2b9
Decided to make the code better by using modular arithmetic and well I get this monstrosity
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.