Skip to content

Instantly share code, notes, and snippets.

@Marken-Foo
Marken-Foo / read_board.py
Created July 2, 2024 07:30
Python script to convert shogi board image to SFEN (needs tsumemi)
import math
import cv2
import numpy as np
import pytesseract
from pytesseract import Output
from basetypes import Koma, Side, KTYPE_FROM_KANJI
from position import Position
@Marken-Foo
Marken-Foo / karakoro_note_201220.md
Created December 24, 2020 10:56
Shogi and Fischer increment - translation of 2020-12-20 note.com post by karakoro

Shogi and Fischer increment

(Original post by karakoro-san: https://note.com/karakorororo/n/n59ecdc1261fb )

The ubiquitous time setting in chess, Fischer increment.

In contrast, for shogi byoyomi is the norm, while increment time controls are not common.

That said, those who didn't know of Fischer increment were probably the majority a few years ago, but today there are probably more who may never have tried it but still know about increment.

@Marken-Foo
Marken-Foo / karakoro_note_201206.md
Created December 23, 2020 15:09
lishogi diary 1 - translation of 2020-12-06 note.com post by karakoro

lishogi diary 1

(Original post by karakoro-san: https://note.com/karakorororo/n/n149601dd0157 )

I'm one of the few Japanese people currently hanging around on lishogi.

Peeking at the lishogi Discord, it's fun to discover new things every day.

In order to organise my thoughts, I'll write individual posts about the experiences I've amassed.

@Marken-Foo
Marken-Foo / suginami_note_201222.md
Created December 23, 2020 15:08
lishogi updates and regarding the byoyomi format - translation of 2020-12-22 note.com post by 杉並委員長 (ch_suginami)

lishogi updates and regarding the byoyomi format

(Original post by ch_suginami-san: https://note.com/ch_suginami/n/n22781eba6766 )

Correction

In the previous post, I wrote that more kifu notation types were added. In that post, I wrote that the 「右左直引」 disambiguations were not implemented.

But yesterday when I happened to look at a kifu, the notation system had been upgraded and I noticed that disambiguation was supported. I don't know if it was a difference in time or if action was taken after reading the post, but as a result the content of the prior post is now inaccurate. This correction is noted here.

@Marken-Foo
Marken-Foo / translation_listing.md
Last active December 24, 2020 10:58
Translated note.com articles
@Marken-Foo
Marken-Foo / suginami_note_201220.md
Created December 20, 2020 16:36
lishogi updates 2020-12-08 - translation of 2020-12-08 note.com post by 杉並委員長 (ch_suginami)

lishogi latest updates (as of nighttime, 20th December)

(Original post by ch_suginami-san: https://note.com/ch_suginami/n/na9fdb8a2970f )

Updates

Kifu notation has been extended. Next to the original western notation style, Kawasaki and Japanese notation styles have been added. So now it looks much better from a Japanese aesthetic. If one were to find fault, it would be that the 「打つ」 for dropping pieces and the 「右左引直」 for disambiguation are not supported, and for the latter case the "departure square coordinate" is given just as in chess. For those who are familiar with computer shogi, perhaps it would be easier to describe as a mix with the CSA format.

However, it would be unreasonable to demand this much improvement at the current juncture. It's good enough how far it's come.

@Marken-Foo
Marken-Foo / suginami_note_201208.md
Created December 20, 2020 16:35
lishogi updates 2020-12-08 - translation of 2020-12-08 note.com post by 杉並委員長 (ch_suginami)

lishogi latest updates (as of nighttime, 8th December)

(Original post by ch_suginami-san: https://note.com/ch_suginami/n/n1f0d9ff49b31)

Although it's been a little while, I'll finally drop another article about lishogi. Just a few days ago I wrote a similar article, but it vanished due to "synchronisation" or something. But since I've noticed a few other things since then, I'll add them in as I go along.

lishogi population

Although globally the number of games played is slowly increasing, the total number is still rather small. There are still times when matchmaking is slow and it's somewhat difficult to find active users; but conversely this is evidence that there are still users who are excited to play on lishogi. I would count myself among these (whom I believe to be) Japanese people who are immersed in, and even contribute to lishogi. Contributing to the spread of lishogi within Japanese circles is also karakoro-san, whom I frequently see around and who also assists with the development of

@Marken-Foo
Marken-Foo / karakoro_note_201204.md
Created December 20, 2020 16:33
Chess culture and shogi culture - translation of 2020-12-04 note.com post by karakoro

Chess culture and shogi culture

(Original post by karakoro-san: https://note.com/karakorororo/n/n806887c435e0)

Because I sensed a need for it, I summarise here to the best of my knowledge the elements of chess culture that are likely to stir trouble if directly introduced to shogi culture.

There are some unspoken taboos involved; as the lishogi project advances, I was worried that it would run into them unless someone who is familiar with the issues collates these, so I took up the pen.

This article respects as far as possible both shogi culture and JSA policy, places emphasis on Japanese cultural sensibilities, and will avoid referencing any legal issues.

@Marken-Foo
Marken-Foo / karakoro_note_201203.md
Created December 20, 2020 16:33
International shogi sites - translation of 2020-12-03 note.com post by karakoro

There are a surprising number of international shogi sites

(Original post by karakoro-san: https://note.com/karakorororo/n/nbfc14b45f3a6)

Recently I've been playing a lot on lishogi. Before I knew it, I had the second-highest number of games played on the site.

As I play games on lishogi, keep tabs on development progress on the lishogi discord (and occasionally get into debates), I've come to realise that there are actually a surprising number of shogi sites aimed at an international audience.

Let me introduce them one by one.

@Marken-Foo
Marken-Foo / karakoro_note_201129.md
Created December 20, 2020 16:32
Shogi tactics trainer? - translation of 2020-11-29 note.com post by karakoro

Can a shogi tactics trainer be made?

(Original post by karakoro-san: https://note.com/karakorororo/n/n3d352a787214)

If you have been exposed to both shogi and chess before, you may have wondered about something.

"Isn't there a shogi version of chess tactics?"

Let's try to look at it from a regular person's perspective, someone familiar with shogi but without specialist knowledge.