nimzozo / ab-chess Goto Github PK
View Code? Open in Web Editor NEWAll in one chess API for JavaScript
Home Page: https://nimzozo.github.io/Ab-Chess
License: MIT License
All in one chess API for JavaScript
Home Page: https://nimzozo.github.io/Ab-Chess
License: MIT License
Ghosts are sometimes stuck, and pieces disappear.
The chessboard is not displaying properly
At the bottom the files are there but not the correct height. The Pieces move properly but they are not visible.
My code: I used this: AbChess-0.3.0.zip but extracted as a folder
Have the possibility to make the chessboard free of any rule.
When a promotion occures and if we switch the browser's tab, the promoted piece isn't removed from the DOM.
What needs animation :
It would be nice to be able to take a move back, or to have buttons where moves could be taken back.
Might consider adding responsive board UI also a get last move method perhaps.
Methods without examples :
92 ...Rc1 was exported as 92 ...O-O-O
I did generate this invalid game. (Illegal 40. Rc1)
Not able to reproduce though.
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "Math.random()"]
[Black "Math.random()"]
[Result "1/2-1/2"]
1. Nc3 Nh6 2. d4 e5 3. Bg5 Qe7 4. Bc1 Qf6 5. h3 Qf3 6. Nxf3 Nc6 7. dxe5 Ng4
8. Qd5 g5 9. Qd1 Nh2 10. Nd2 Kd8 11. Nf3 b5 12. Rb1 Bc5 13. Bd2 Rb8 14. Nxb5
Rb7 15. b3 Bb4 16. Rc1 a6 17. c3 Ke7 18. Rb1 a5 19. Bf4 Kf8 20. Ra1 Ke8
21. Na3 a4 22. Nd4 g4 23. hxg4 Kf8 24. Nc2 Ke8 25. Qd2 Rb5 26. g5 Ba5 27. e3
Rxe5 28. Kd1 Re7 29. Nb1 Bb6 30. Bd6 axb3 31. Bxh2 Ba6 32. Na3 Na7 33. Qd6 f5
34. Be5 Rg8 35. Bc4 Kd8 36. Qxe7+ Kxe7 37. Bb5 Bd4 38. Bd6+ cxd6 39. Bxd7 h5
40. Rc1 Bb6 41. Ba4 Nb5 42. f4 Rc8 43. Rf1 Na7 44. g3 Rc7 45. Rf3 Rc6 46. Ne1
Kd7 47. Kd2 Ba5 48. Rf2 b2 49.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Ke5 134. g5 Qa6 135. Rf8
Qe2+ 136. Kg3 Qb2 137. Rg8 Qb1 138. Kg2 Kd5 139. Kh3 Qf5+ 140. Kg2 Qf2+
141. Kxf2 Kd4 142. Rc8 Kd3 143. Na6 Kd2 144. Rf8 Kc2 145. Rc8+ Kd2 146. Rg8
Kd3 147. Re8 Kd2 148. Re2+ Kc3 149. Re4 Kb3 150. Nc5+ Kc3 151. Nb3 Kxb3
152. Rc4 Kxc4 153. Ke2 Kd5 154. g6 Ke6 155. Kf2 Kd6 156. Ke2 Kd5 157. Kf3 Kc4
158. Kf4 Kb5 159. Kg5 Ka5 160. Kg4 Ka6 161. Kf3 Ka7 162. Kf2 Kb8 163. Kg2 Kc7
164. Kh1 Kd8 165. Kg2 Kc7 166. Kg1 Kc6 167. Kf1 Kb5 168. Ke2 Kb4 169. Kf3 Kc5
170. Ke2 Kb4 171. Ke1 Kc5 172. g7 Kc6 173. Ke2 Kd7 174. g8=R Kc7 175. Rg4 Kc6
176. Rg8 Kb6 177. Kd3 Kc6 178. Ke3 Kd7 179. Re8 Kxe8 1/2-1/2
Hi!
I would like to make it so that the game starts not from the starting position of all the figures, but from the target position with the correct FEN, but I get an error. Can you tell me how to do it correctly?
Documentation states "Create a new game and set the chessboard to the initial starting position."
This is not the case: simply call reset on your abChess object. The chessboard pieces remain in their position.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.