Code Monkey home page Code Monkey logo

Comments (11)

Scrivener07 avatar Scrivener07 commented on June 7, 2024 1

Thats nearly exactly what I have in the rules. ToScore will convert a Card into its score value. Maybe the problem is where the whole hands score is calculated. Im still taking a look at this.

from fo4_games.

Scrivener07 avatar Scrivener07 commented on June 7, 2024

Two examples. The ace is returning its "soft" score.
screenshot19
screenshot20

from fo4_games.

TheWhiteCollarPlayers avatar TheWhiteCollarPlayers commented on June 7, 2024

A simple condition check will fix that:

if (11+PlayerTotal > 21) 
     PlayerTotal = PlayerTotal + 11

else 

PlayerTotal = Player Total + 10

end

from fo4_games.

TheWhiteCollarPlayers avatar TheWhiteCollarPlayers commented on June 7, 2024

Is this still a bug? I believe it works now, feel free to close this if you're confident you fixed it

from fo4_games.

Scrivener07 avatar Scrivener07 commented on June 7, 2024

Ill feel confident if someone else plays 10 games and doesnt notice anything weird. You think you can get in 10 games? Maybe do 5 games and then quit the table, then do another 5. Anything you think might break it, do it.

from fo4_games.

TheWhiteCollarPlayers avatar TheWhiteCollarPlayers commented on June 7, 2024

Oh ya I will put it through the paces, I'll type up notes from my testing here when I am done

from fo4_games.

Scrivener07 avatar Scrivener07 commented on June 7, 2024

Hit that Print Screen button if you catch any bugs.

from fo4_games.

TheWhiteCollarPlayers avatar TheWhiteCollarPlayers commented on June 7, 2024

Is this officially squashed? I still need to do more testing, but if you're confident then feel free to close it

from fo4_games.

Scrivener07 avatar Scrivener07 commented on June 7, 2024

Ill feel confident when it works for someone besides myself.

from fo4_games.

TheWhiteCollarPlayers avatar TheWhiteCollarPlayers commented on June 7, 2024

I believe this is fixed now, but if you want to do more testing let me know, otherwise we can close this

from fo4_games.

Scrivener07 avatar Scrivener07 commented on June 7, 2024

Ace cards are now calculating score value properly.

from fo4_games.

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.