Comments (5)
Ah, sorry, if I bump and add the new import (like you did in your tests in your PR), then it works! greg-finley/lichess-bigquery@30043dd
Sorry for the noise :) I'm trying to learn Scala again haha
And thanks for your help!
from scalachess.
Hi @greg-finley, it's so great to know someone else is using scalachess! Please give us more feedback as you use it. I'd love to make scalachess more accessible.
I think you still can use situationAfter
in fold as before, because we still have situationAfter
: https://github.com/lichess-org/scalachess/blob/master/src/main/scala/Drop.scala#L18
I also looked briefly at your code, I don't know why it is not compiled. Can you past the error here?
from scalachess.
Oh sorry! I was linking to main
which was still on the old version.
Here is the broken code now: greg-finley/lichess-bigquery#2
[error] -- [E008] Not Found Error: /Users/gregoryfinley/git-repos/lichess-bigquery/src/main/scala/Main.scala:113:37
[error] 113 | moveOrDrop.situationAfter,
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[error] | value situationAfter is not a member of chess.MoveOrDrop
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed Feb 19, 2023, 11:53:35 PM
I think this file src/main/scala/MoveOrDrop.scala
would need to define situationAfter
, like how it defines toUci
.
from scalachess.
If I bump without changing the Scala code, I will hit:
error] -- [E008] Not Found Error: /Users/gregoryfinley/git-repos/lichess-bigquery/src/main/scala/Main.scala:106:20
[error] 106 | x.fold(
[error] | ^^^^^^
[error] | value fold is not a member of chess.MoveOrDrop
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed Feb 19, 2023, 11:58:31 PM
I see you gave me fold
again, so not sure why I can't use it. Though I prefer not to fold
if enough methods are exposed on MoveOrDrop
. What do you think?
from scalachess.
no worries, glad you solved it. Hope the best for your scala journey.
from scalachess.
Related Issues (20)
- Rename Paulsen Variation => Taimanov Variation?
- test failures (ForsythTest, HashTest)
- Fix En Passant in Horde for pawns in rank 1 HOT 1
- Use Scalacheck for testing pgn parser HOT 4
- Reject pgn files that have invalid tags format HOT 1
- PGN cleanup may break comments HOT 1
- Master doesn't currently compile HOT 2
- variant: DFRC HOT 1
- timeout vs insufficient material in NvN antichess HOT 1
- Publish in a sbt repository HOT 1
- Rename `Pos` to `Square` HOT 2
- Support impossible checks when validate position HOT 14
- Migrate specs2 to munit HOT 3
- How do I get started? HOT 3
- Consider if we should stop using `TotalWrapper` for `OpaqueBitboard` for performance gain HOT 3
- rename `OpeningFen`
- Regression with regard to castling rights of inner rooks HOT 3
- Make all endgame drills same color HOT 1
- Generalize Pgn
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 scalachess.