shogi-player
Version:
Shogi board web components has functions for replaying, manipulating, and editing
17 lines (14 loc) • 566 B
JavaScript
import { ApplicationMemoryRecord } from "./application_memory_record.js"
export class IllegalInfo extends ApplicationMemoryRecord {
static get define() {
return [
{ key: "illegal_two_pawn", name: "二歩", },
{ key: "illegal_death_king", name: "王手放置", },
{ key: "illegal_piece_warp", name: "駒ワープ", },
{ key: "illegal_dead_soldier", name: "死に駒", },
]
}
}
if (typeof process !== "undefined" && process.argv[1] === __filename) {
console.log(IllegalInfo.fetch("illegal_two_pawn").attributes)
}