0.3.99999 • Published 2 years ago

shogitter-core v0.3.99999

Weekly downloads
-
License
Pay 1 million yen...
Repository
-
Last release
2 years ago

Now @shogitter/core

shogitter-core has been moved to @shogitter/core.

(deprecated) shogitter-core

shogitter-core is a core logic of http://shogitter.com

Status

  • This library is used by shogitter, to generate legal move for each shogi variant rules and validate users' moves.
  • Shogitter had been using PHP code (it wasn't an apparently bad choice in 2010 when I was an undergrad student!), and shogitter-core is an almost direct translation of PHP code to TypeScript.
    • Because of that, some code look not fluent in TypeScript.
  • The code is covered by some integration tests. You can see how to use it

Plan

  • Integrate shogitter-core to the shogitter itself
  • (optional) Provide an example UI to play around with what shogitter-core can do

File structure

  • integration-tests: Integration tests
  • src: main source code
    • db: definitions of rules. It looks like an output of mongoexport command because it is.
      • koma.ts: definition of pieces
      • rule.ts: definition of rules
      • rulegenre.ts: definition of rule genres (categories)
    • strategy: "strategies" which can customize behavior of Shogi class

Disclaimer

  • There's no clearly defined interface. I can change any interface at any moment
0.3.9999

2 years ago

0.3.99999

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.1.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago