Giter VIP home page Giter VIP logo

blackjack-demon's People

Contributors

cch5ng avatar

Stargazers

 avatar

Watchers

 avatar

blackjack-demon's Issues

one bad bug with dealer turn, infin loop

080121 > 1014a infinite loop seems resolved

  • (X-fixed) but there is still timing issue with evaluating dealer cards score (last comment)
  • try and follow up to see if my useEffect should have been structured better
    • https://www.robinwieruch.de/react-usestate-callback think about and try to come up with different ways of solving the timing issue (think the playerHands was not getting updated in time where the while loop starts if card was added for total of 3 cards but the value was still < 17 then a new card was never getting added bc the old state dealer hand value was being referenced)

dealerGetHandValue() broken

  • fixed but do a few more tests (like low values with a lot of aces)

looks like when the dealer total is 16

something is wrong with adding a card to update the total

also think that evaluating the dealer total (how ace is used) is different from the player evaluation

When the dealer has served every player, the dealers face-down card is turned up. If the total is 17 or more, it must stand. If the total is 16 or under, they must take a card. The dealer must continue to take cards until the total is 17 or more, at which point the dealer must stand. If the dealer has an ace, and counting it as 11 would bring the total to 17 or more (but not over 21), the dealer must count the ace as 11 and stand. The dealer's decisions, then, are automatic on all plays, whereas the player always has the option of taking one or more cards.

UI style

  • improve the winner/loser display
  • (after reademe) rules
  • try to make it feel fun
  • responsive (fix layout for mobile)
  • (low priority after readme) game board
  • try to add something fun
  • actually think about the cards (probably one component to display player cards or dealer cards)
  • game cards (reuse something online free?)
  • fix the hidden card (style it better)

something fancy for blackjack?

maybe something fancy for user bust?

maybe something fancy for winners vs losers

social media

Target the advanced requirement

  • High-effort content was created and then posted to LinkedIn, Twitter or other mediums.
    For example, a blog article, a video walkthrough, an audio presentation, or other creative and out-of-the-box formats.

  • min blog, ideally video walkthrough

  • link to social media on the readme

  • (minimal) Simple posts were created on LinkedIn and/or Twitter, perhaps with a screenshot

graphics results display + rules

  • rules background graphic
  • dealer avatar happy
  • dealer avatar mad
  • dealer avatar frustrated

have rough sketches on paper

do another cleaner draft and leave them as pen drawings

landing page

missing items:

  • it explains the application and the technologies used to build it
  • introduces the team to the user
  • (advanced) The explainer page is sophisticated, beautifully designed, and/or has features which tell a story with interactive elements and display creative thinking.

testing

how you should separate business logic from the rendering

ask about this on discord; kind of confusing where you separate logic from rendering bc so many events will affect the state

readme

  • screenshots of the application;

  • link to related social media post

  • a list of all developers with links to their contact or social media information.

  • clean up all the console log messages

  • Link to deployed site;

  • basic development and deployment instructions

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.