ngx-chess-board icon indicating copy to clipboard operation
ngx-chess-board copied to clipboard

Appologies if this is not ther ight place for this

Open Jasonmcgowan14 opened this issue 2 years ago • 3 comments

HI--- I am trying to use this repo as part of another project. I am relatively in experienced and was wondering if the code demo version was posted somehwere, specifically the portion that relates to the pgn notation and move logging. I have my own version running, but could save myself a lot time in angular with an example of how you set up the demo. Is that posted in a different repo somewhere? I am not finding it in this one. Again appologies if this is a silly question. Thank you kindly, JM

Jasonmcgowan14 avatar Apr 08 '22 03:04 Jasonmcgowan14

Hello. Code for demo is in this directory: https://github.com/grzegorz103/ngx-chess-board/tree/master/src/app In app.component.ts and app.component.html

147 line in app.component.ts invokes a method that sets pgn on the board. For move logging I think you mean the moveCallback method from 76 line of the same file. These methods are passed or invoked in app.component.html

I hope it helps and if you have any more questions let me know please, thanks

grzegorz103 avatar Apr 08 '22 05:04 grzegorz103

Thank you kindly sir/madam. I am trying to implement a timer that will work with the board and behave as in a normal chess game. This could be a cool new feature for the app. Again thank you, JM

Jasonmcgowan14 avatar Apr 09 '22 02:04 Jasonmcgowan14

You're welcome if you need anything else let me know. Good luck

grzegorz103 avatar Apr 09 '22 09:04 grzegorz103