Coder Social home page Coder Social logo

adalab / modulo-2-evaluacion-intermedia-miaor5 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2 KB

modulo-2-evaluacion-intermedia-miaor5 created by GitHub Classroom

Home Page: http://beta.adalab.es/modulo-2-evaluacion-intermedia-miaor5/

HTML 43.00% JavaScript 54.43% CSS 2.57%

modulo-2-evaluacion-intermedia-miaor5's People

Contributors

miaor5 avatar

modulo-2-evaluacion-intermedia-miaor5's Issues

improvements

Some improvements

Really cool job @miaor5 !!!

Here you have some tips to improve the exercise:

JavaScript: basic

JavaScript: advanced

  • Check if the <select> has the default option (with no value).
  • Move the feedback logic to a function and execute it on each click.
  • Move your bet logic into a function and execute it on each click.

Good practices

  • Indent and avoid extra white spaces to improve readability and prevent bugs. Configurate code formatter in VS Code!!!

HTML

CSS

  • Avoid adding styles until the js code is solid as a rock.

Further challenges

Then you can improve the game as you please, here you have some ideas:

  • Check if the player has enough money to bet and if the bet is greater than 0 and lower than the current amount of the player.
  • Add a reset button that cleans the select, balance of money and writes the initial feedback.
  • Show the restart game button when the game is over and hide the play button.
  • Complete the code needed for the restart game button.
  • Validates if the balance of money is available is less than the money bet and displays a message
  • Whatever you want!

Call to action

Let me know if you have any doubts ;)

Go for it!!

Do not close this issue until your teacher asks you to

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.