Giter Club home page Giter Club logo

Comments (5)

greg-finley avatar greg-finley commented on June 9, 2024 1

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.

lenguyenthanh avatar lenguyenthanh commented on June 9, 2024

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.

greg-finley avatar greg-finley commented on June 9, 2024

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.

greg-finley avatar greg-finley commented on June 9, 2024

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.

lenguyenthanh avatar lenguyenthanh commented on June 9, 2024

no worries, glad you solved it. Hope the best for your scala journey.

from scalachess.

Related Issues (20)

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.