Comments (2)
> library(rchess)
> library(magrittr)
>
> chss <- Chess$new()$
+ move("g4")$
+ move("e5")$
+ move("f3")
>
> chss$moves()
[1] "Nc6" "Na6" "Qe7" "Qf6" "Qg5" "Qh4#" "Ke7" "Be7" "Bd6" "Bc5" "Bb4" "Ba3" "Nh6"
[14] "Nf6" "Ne7" "a6" "a5" "b6" "b5" "c6" "c5" "d6" "d5" "f6" "f5" "g6"
[27] "g5" "h6" "h5" "e4"
>
> plot(chss, type = "ggplot")
You can't move the queen yet.
chess.js dont give more explicit messages and I just verified if the move you want to do exist in the possible moves.
from rchess.
I see now.
You have to put the checkmate in i.e. "Qh4#"
from rchess.
Related Issues (14)
- Get captured material
- get_header funcionality HOT 1
- Bug in history_detail HOT 2
- simultaneous castling and check HOT 1
- Can't load pgn! HOT 3
- Implement a chess engine HOT 2
- Adding chessboard themes
- Enhancement Request: plot after specific move HOT 6
- Enhancement Request: Animation for Individual game HOT 6
- Input moves via shiny? HOT 2
- Build Fail HOT 1
- wrong pgn in the chessopenings dataset
- plot problem on google colab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rchess.