Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a Fuji-san solver #22

Closed
trevorld opened this issue Sep 23, 2019 · 0 comments
Closed

Write a Fuji-san solver #22

trevorld opened this issue Sep 23, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@trevorld
Copy link
Member

There are only (at most) (28 C 4) = 20,475 possible states of monk position on a given Fujisan board (i.e. ignoring pawn suit which doesn't matter). If we build a directed network where each node is a state and we build the directed edges from each node to all the other node feasibly reached in one move then we should be able to use standard network analysis software to compute a shortest path (if it exists) from the starting state to winning state (i.e. Dijkstra's algorithm). Would need to account for games where we need 4 dice for possible starting move options (i.e. special code to handle possible moves for this special cases in the starting state).

Could use this then to generate random games of a certain difficulty (i.e. keep randomly generating games until hit a target number of optimal moves).

@trevorld trevorld added enhancement New feature or request help wanted Extra attention is needed backlog labels Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant