Giter VIP home page Giter VIP logo

pgnutil's People

Contributors

louchesprocket avatar

Stargazers

 avatar

Watchers

 avatar

pgnutil's Issues

How to output with comments/variations removed?

Given an input such as this:

[Event "Live Chess"]
[Site "Chess.com"]
[Date "2020.08.13"]
[Round "-"]
[White "karankunaal"]
[Black "wismahobby"]
[Result "0-1"]
[CurrentPosition "r1bqkbnr/pp1p1ppp/2n1p3/2Q5/4P3/8/PPP2PPP/RNB1KBNR w KQkq -"]
[Timezone "UTC"]
[ECO "B21"]
[ECOUrl "https://www.chess.com/openings/Sicilian-Defense-Smith-Morra-Gambit-2...cxd4-3.Qxd4-Nc6"]
[UTCDate "2020.08.13"]
[UTCTime "23:01:57"]
[WhiteElo "100"]
[BlackElo "319"]
[TimeControl "300"]
[Termination "wismahobby won by resignation"]
[StartTime "23:01:57"]
[EndDate "2020.08.13"]
[EndTime "23:02:11"]
[Link "https://www.chess.com/live/game/5294311587"]

1. e4 {[%clk 0:04:59.9]} 1... c5 {[%clk 0:04:58]} 2. d4 {[%clk 0:04:58.6]} 2... cxd4 {[%clk 0:04:56.7]} 3. Qxd4 {[%clk 0:04:57.1]} 3... Nc6 {[%clk 0:04:55.2]} 4. Qc5 {[%clk 0:04:55.8]} 4... e6 {[%clk 0:04:53.6]} 0-1

I would like the clock, comments, and variations removed. I want the output to simply be the headers, and the moves. Is there a way to do this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.