Skip to content

Support full move numbers without dots (old Descriptive) #6

@marianogappa

Description

@marianogappa

Currently, this format is parsed properly:

1. g4+  hxg4+ 
2. Kg3  Kg6 
3. Kxg4 Kh6 
4. Kf5  Kh5 
5. Ke5  Kxh4 
6. Kd5  Kg5 
7. Kc5  Kf6 
8. Kxb5 Ke7 
9. Kc6  Kd8 
10. Kb7 Kd7 
11. b5 

This one also works

g4+  hxg4+ 
Kg3  Kg6 
Kxg4 Kh6 
Kf5  Kh5 
Ke5  Kxh4 
Kd5  Kg5 
Kc5  Kf6 
Kxb5 Ke7 
Kc6  Kd8 
Kb7 Kd7 
b5 

But this one fails

1 g4+  hxg4+ 
2 Kg3  Kg6 
3 Kxg4 Kh6 
4 Kf5  Kh5 
5 Ke5  Kxh4 
6 Kd5  Kg5 
7 Kc5  Kf6 
8 Kxb5 Ke7 
9 Kc6  Kd8 
10 Kb7 Kd7 
11 b5 

Old Descriptive format sometimes omits the dots. Since Descriptive -> Algebraic is the most common use case for the converter, it should support this format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions