Skip to content

Commit

Permalink
Merge pull request #15 from sugyan/feature/0.6.0
Browse files Browse the repository at this point in the history
Update to `0.6.0`
  • Loading branch information
sugyan authored Jul 15, 2022
2 parents 25465f2 + 4d9b174 commit fa033d6
Show file tree
Hide file tree
Showing 24 changed files with 692 additions and 978 deletions.
169 changes: 61 additions & 108 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
[package]
name = "tsumeshogi-solver"
version = "0.5.2"
version = "0.6.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dfpn = { path = "./dfpn" }
dfpn-extended = { path = "./dfpn-extended" }
shogi-converter = { path = "./shogi-converter" }
csa = "1.0.1"
solver = { path = "./solver" }
csa = "1.0.2"
clap = { version = "3.1.1", features = ["derive"] }
shogi = "0.12.2"
thiserror = "1.0.30"
yasai = { git = "https://github.com/sugyan/yasai", tag = "0.1.3" }
shogi_core = "0.1.4"
shogi_usi_parser = "0.1.0"
shogi_official_kifu = "0.1.1"

[profile.release]
lto = true

[workspace]
members = [
"solver",
]
48 changes: 11 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# tsumeshogi-solver

```
$ cat 3.csa
V2.2
% ./tsumeshogi-solver -v '9/9/3pp4/+r2k1p3/2L1+p4/2+R6/B8/B8/9 b 4g4s4n3l14p 1'
9/9/3pp4/+r2k1p3/2L1+p4/2+R6/B8/B8/9 b 4g4s4n3l14p 1:
P1 * * * * * * * * *
P2 * * * * * * * * *
P3 * * * -FU-FU * * * *
Expand All @@ -17,39 +17,14 @@ P9 * * * * * * * * *
P-00AL
+
$ ./tsumeshogi-solver --format csa -v 3.csa
9 8 7 6 5 4 3 2 1
+---+---+---+---+---+---+---+---+---+
| | | | | | | | | | a
+---+---+---+---+---+---+---+---+---+
| | | | | | | | | | b
+---+---+---+---+---+---+---+---+---+
| | | | p| p| | | | | c
+---+---+---+---+---+---+---+---+---+
| +r| | | k| | p| | | | d
+---+---+---+---+---+---+---+---+---+
| | | L| | +p| | | | | e
+---+---+---+---+---+---+---+---+---+
| | | +R| | | | | | | f
+---+---+---+---+---+---+---+---+---+
| B| | | | | | | | | g
+---+---+---+---+---+---+---+---+---+
| B| | | | | | | | | h
+---+---+---+---+---+---+---+---+---+
| | | | | | | | | | i
+---+---+---+---+---+---+---+---+---+
Side to move: Black
Hand (Black):
Hand (White): g4 s4 n4 l3 p14
Ply: 1
Ok(["+7572NY", "-0086KE", "+7673RY"])
Ok("7e7b+ N*8f 7f7c")
elapsed: 35.561833ms
```

### Run

```
Tsumeshogi Solver 0.5.2
Tsumeshogi Solver 0.6.0
USAGE:
tsumeshogi-solver [OPTIONS] <INPUTS>...
Expand All @@ -58,13 +33,12 @@ ARGS:
<INPUTS>... Input files or SFEN strings
OPTIONS:
--backend <BACKEND> Backend implementation [default: yasai] [possible values: shogi,
yasai]
-f, --format <FORMAT> Input format [default: sfen] [possible values: sfen, csa, kif]
-h, --help Print help information
-t, --timeout <TIMEOUT> Time limit to solve (seconds)
-v, --verbose Verbose mode
-V, --version Print version information
-h, --help Print help information
-i, --input-format <FORMAT> Input format [default: sfen] [possible values: sfen, csa, kif]
-o, --output-format <FORMAT> Output format [default: usi] [possible values: usi, csa, kifu]
-t, --timeout <TIMEOUT> Time limit to solve (seconds)
-v, --verbose Verbose mode
-V, --version Print version information
```


Expand Down
Loading

0 comments on commit fa033d6

Please sign in to comment.