- This program analyzes current state in the game and gives recommendations about the next move;
- Uses a yaml file as an input info about game state.
Just run make or go build cmd/turing-machine/main.go
OR
run go install github.com/dmitrybarsukov/turing-machine/cmd/turing-machine@latest
cp game_state_sample.yaml game_state.yaml
Majority of known validators are already defined in beginning of game_state_sample.yaml file,
but you can also define your own.
Example:
validators:
A: *countOfNumber1
B: *majorParity
C: *parityOfAllSum
D: *sumOfTriangleAndSquareComparedTo6
E: *hasPair
F: *hasOrderIf you do not have validators E and F or only F, just remove them from this file
tests:
124: # Input number 124
D: true # Testing validator D gave true
B: false # Testing validator D gave false
E: true # Testing validator E gave true
542: # Input number 542
A: false # Testing validator A gave false./bin/turing-machine game_state.yaml- if built viamake./turing-machine game_state.yaml- if built viago build ...turing-machine game_state.yaml- if built viago install ...
Try code 123-> you should try input code123Check validator B-> you should check validatorBresult- Return to step 2
If app says Found solution: 531, so the solution for game is 531
- Initial version with ~70% of all known validators
- Improved validator recommendation